Skip to content

Instantly share code, notes, and snippets.

@cbrevik
Created April 8, 2019 12:37
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 cbrevik/68c9a792fff0c488154f1d6c3ede911e to your computer and use it in GitHub Desktop.
Save cbrevik/68c9a792fff0c488154f1d6c3ede911e to your computer and use it in GitHub Desktop.
Fishshell config
# just the most essential stuff
abbr ga 'git add'
abbr gs 'git status'
abbr gb 'git branch'
abbr gcom 'git commit'
abbr gd 'git difftool --no-prompt'
abbr gdd 'git difftool --dir-dif'
abbr gco 'git checkout'
abbr gpr 'git pull --rebase'
abbr gr 'git rebase'
abbr rn 'react-native'
abbr dm 'docker-machine'
abbr mk 'minikube'
abbr ku 'kubectl'
abbr duh 'du -sh'
abbr y 'yarn'
abbr j 'jump'
function paste-into-file
if test -d $argv
echo "No argument provided"
else
if not test -e $argv[1]
touch $argv[1]
else
echo "" >> $argv[1]
end
pbpaste >> $argv[1]
end
end
abbr pif 'paste-into-file'
function reload
source ~/.config/fish/config.fish
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment