christian fei's blog

agile developer

clean code connoisseur && testing aficionado

read more about me or what i am doing now

read some posts that i wrote

follow me on twitter and connect with me on linkedin

distilling customer feedback at wonderflow

Edit this page on GitHub

Fun with single letter commands

written on Fri Jul 19 2019 00:00:00 GMT+0000 (Coordinated Universal Time)

by Christian Fei

here all single letter commands from my dotfiles

$ cd ~/dotfiles/dots/.config/fish/functions/

$ find . -name '?.fish'

./s.fish
./l.fish
./x.fish
./t.fish
./w.fish
./b.fish
./c.fish
./d.fish
./e.fish
./ex.fish
./i.fish

s.fish

start npm package

runs npm start

l.fish

list all files

runs ls -lha

x.fish

exits the current shell

runs exit

t.fish

obviously runs the tests

runs npm test

w.fish

less used now, runs npm run watch

b.fish

build npm package

runs npm run build

e.fish

open a visual studio code window for the current directory

runs code .

ex.fish

same as above, additionally exits terminal

runs code . && exit 0

d.fish

is for deploying fast

runs npm run deploy

c.fish

easy git clone

runs git clone $argv

usage c [email protected]:christian-fei/christian-fei.github.io

i.fish

installs npm deps

runs npm i $argv