Skip to content

Instantly share code, notes, and snippets.

@jsyeo
Last active January 12, 2021 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsyeo/c7ab8b8789c42201d09fd89e64fd4356 to your computer and use it in GitHub Desktop.
Save jsyeo/c7ab8b8789c42201d09fd89e64fd4356 to your computer and use it in GitHub Desktop.
My fish config
# ~/.config/fish/config.fish
# git/hub
abbr git hub
abbr gst 'hub status'
abbr gd 'hub diff'
abbr ga 'hub add'
abbr gc 'hub commit'
abbr gp 'hub push'
abbr gpb 'hub push -u origin (hub rev-parse --abbrev-ref HEAD)'
abbr gl 'hub pull'
abbr gb 'hub branch'
abbr gco 'hub checkout'
abbr grbc 'hub rebase --continue'
abbr grba 'hub rebase --abort'
# k8s
abbr k 'kubectl'
abbr kgp 'kubectl get pods'
abbr kdp 'kubectl delete pod'
abbr kdesc 'kubectl describe pod'
abbr ksca 'kubectl config use-context arn:aws:eks:us-east-1:772788280252:cluster/sca-nonprod'
abbr kops1 'kubectl config use-context ops1'
abbr klogs 'kubectl logs --tail=500 -f'
# docker-compose
abbr dcup 'docker-compose up -d'
abbr dcdown 'docker-compose down'
abbr dclogs 'docker-compose logs -f'
abbr dcexec 'docker-compose exec' # <container-name> <command>
abbr dcps 'docker-compose ps'
abbr vim 'nvim'
set -gx PATH $HOME/bin $PATH
source ~/.asdf/asdf.fish
# opam configuration
source /Users/yo/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment