Skip to content

Instantly share code, notes, and snippets.

@mimukit
Last active August 24, 2022 20:34
Show Gist options
  • Save mimukit/ebb81556309cfbe662df1318da0e012d to your computer and use it in GitHub Desktop.
Save mimukit/ebb81556309cfbe662df1318da0e012d to your computer and use it in GitHub Desktop.
Fish shell abbreviations for mac

abbr -a -U -- abbra 'abbr --add'

abbr -a -U -- addfishpath 'set --universal --append fish_user_paths'

abbr -a -U -- brewup 'brew update && brew upgrade && brew cleanup'

abbr -a -U -- c clear

abbr -a -U -- ct 'cloudflared tunnel'

abbr -a -U -- dc docker-compose

abbr -a -U -- dcr 'docker-compose restart'

abbr -a -U -- dcs 'docker-compose start'

abbr -a -U -- dcsp 'docker-compose stop'

abbr -a -U -- dcu 'docker-compose up'

abbr -a -U -- dcud 'docker-compose up -d'

abbr -a -U -- dipa 'docker image prune --all'

abbr -a -U -- dlf 'docker logs --follow'

abbr -a -U -- dnsflush 'sudo dscacheutil -flushcache'

abbr -a -U -- dockerclean 'docker system prune -a'

abbr -a -U -- dor 'sudo open /Applications/Docker.app'

abbr -a -U -- dps 'docker ps'

abbr -a -U -- dpsa 'docker ps -a'

abbr -a -U -- fishconfig 'vi ~/.config/fish/config.fish'

abbr -a -U -- gbd 'git branch -d'

abbr -a -U -- gbls 'git branch --all'

abbr -a -U -- gitc 'git remote prune origin'

abbr -a -U -- gitclean 'git remote prune origin'

abbr -a -U -- gitcleanmerged git\ branch\ --merged\ main\ |\ grep\ -v\ "^\*\ main"\ |\ xargs\ -n\ 1\ -r\ git\ branch\ -d

abbr -a -U -- glo 'git log --oneline'

abbr -a -U -- gst 'git status'

abbr -a -U -- hma 'hasura migrate apply'

abbr -a -U -- hme 'hasura metadata'

abbr -a -U -- hmea 'hasura metadata apply'

abbr -a -U -- hmi 'hasura migrate'

abbr -a -U -- hmia 'hasura migrate apply'

abbr -a -U -- hmis 'hasura migrate status'

abbr -a -U -- hms 'hasura migrate status'

abbr -a -U -- j jump

abbr -a -U -- mgi 'npm run mg:info'

abbr -a -U -- mgl 'npm run mg:latest'

abbr -a -U -- nb 'npm run build'

abbr -a -U -- ncg 'sudo npm-check -gu'

abbr -a -U -- ncu 'npx npm-check-updates'

abbr -a -U -- nd 'npm run dev'

abbr -a -U -- ndd 'npm run develop'

abbr -a -U -- ni 'npm i'

abbr -a -U -- nip 'npm i --production'

abbr -a -U -- npmls 'npm ls -g --depth=0'

abbr -a -U -- npmsize 'find . -name "node_modules" -type d -prune -print | xargs du -chs'

abbr -a -U -- npmup 'npx npm-check -gu'

abbr -a -U -- nr 'npm run'

abbr -a -U -- nrc 'npm run clean'

abbr -a -U -- nrs 'npm run setup'

abbr -a -U -- ns 'npm start'

abbr -a -U -- nx 'npx nx'

abbr -a -U -- sta 'snyk test --all-projects'

abbr -a -U -- starshipconfig 'vi ~/.config/starship.toml'

abbr -a -U -- v volta

abbr -a -U -- vd 'vercel dev'

abbr -a -U -- wr wrangler

abbr -a -U -- y yarn

abbr -a -U -- yb 'yarn build'

abbr -a -U -- ybc 'yarn build:clean'

abbr -a -U -- ybcm 'yarn build:common'

abbr -a -U -- yc 'yarn clean'

abbr -a -U -- yd 'yarn dev'

abbr -a -U -- ydm 'yarn dev:mobile'

abbr -a -U -- yls 'yarn global list'

abbr -a -U -- ys 'yarn start'

abbr -a -U -- yt 'yarn test'

abbr -a -U -- yup 'yarn global upgrade-interactive --latest'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment