Last active
January 4, 2018 01:39
-
-
Save jogjayr/639d670de1f12bf279f2 to your computer and use it in GitHub Desktop.
My config.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_user_key_bindings | |
bind \e\[1\;9C forward-word | |
bind \e\[1\;9D backward-word | |
bind \e\[dw backward-kill-word | |
end | |
function portkill --description "Kill process running on port" | |
kill -9 (lsof -t -i:$argv) | |
end | |
function gs --description "Show git status" | |
git status | |
end | |
function gpus --description "Shorthand for git push" | |
git push $argv | |
end | |
function gpom --description "Shorthand for git push origin master" | |
git push origin master | |
end | |
function gau --description "git add -u then git status" | |
git add -u | |
git status | |
end | |
function mkcd --description "Create directory and cd to it" | |
mkdir $argv | |
cd $argv | |
end | |
function n --description "Alias for npm" | |
npm $argv | |
end | |
function y --description "Alias for yarn" | |
yarn $argv | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment