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 hidden or 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 | |
alias gs=git status | |
function -d "Show git status" gs | |
git status | |
end | |
function gau -d "git add -u then git status" | |
git add -u | |
git status | |
end | |
function mkcd -d "Create directory and cd to it" | |
mkdir $argv | |
cd $argv | |
end | |
function gb -d "Runs grunt build task" | |
grunt build | |
end | |
function gt -d "Runs grunt test task" | |
grunt test | |
end | |
function cpbranch -d "Copy current branch name to clipboard" | |
git rev-parse --abbrev-ref HEAD | pbcopy | |
end | |
function gpush -d "Runs git push origin <your_current_branch>" | |
git rev-parse --abbrev-ref | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment