Created
November 12, 2016 22:57
-
-
Save barbagrigia/338517868fc9d1efdc6714d68d2a4d9b to your computer and use it in GitHub Desktop.
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
| # Useful functions {{{ | |
| function .. | |
| cd .. | |
| end | |
| function ... | |
| cd ../.. | |
| end | |
| function _prepend_to_path -d "Prepend the given dir to PATH if it exists and is not already in it" | |
| if test -d $argv[1] | |
| if not contains $argv[1] $PATH | |
| set -gx PATH "$argv[1]" $PATH | |
| end | |
| end | |
| end | |
| _prepend_to_path $HOME/bin | |
| _prepend_to_path $HOME/.local/bin | |
| for p in $HOME/.bins/* | |
| _prepend_to_path $p | |
| end | |
| set -x fish_greeting '' | |
| if type emacsclient >/dev/null | |
| set -x EDITOR "emacsclient -a '' -t" | |
| end | |
| if test -e ~/.fishrc | |
| . ~/.fishrc | |
| end | |
| . ~/.config/fish/virtualfish/virtual.fish | |
| true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment