Fun with single letter commands

by Christian Fei @ 2019-07-19

81 words, 1 minute reading time

#post #tutorial 

this

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

this

Leave a comment

Better web scraping with node.js My blogging stack in 2020 Run cypress integration tests with github actions workflow Simple telegram message with github actions Deploy eleventy site with github actions on aws s3 Simple ad and trackers blocking with dns Build for a slow connection Upgrade mongodb 3 to 4 on ubuntu Publishing org scoped npm packages with travis A story about npm publish / unpublish