Last active
February 23, 2018 01:41
-
-
Save ProLoser/45c51f0d104fb2e029b4 to your computer and use it in GitHub Desktop.
My OSX fish (oh-my-fish) shell configuration file
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
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
# Theme | |
set fish_theme agnoster | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ | |
# Path to your custom folder (default path is $FISH/custom) | |
#set fish_custom $HOME/dotfiles/oh-my-fish | |
# Load oh-my-fish configuration. | |
. $fish_path/oh-my-fish.fish | |
# thefuck | |
function __thefuck_repl -d 'Replace operators into fish-compatible' | |
set -l tmp (echo $argv | sed 's/ && / ; and /g') | |
echo $tmp | sed 's/ || / ; or /g' | |
end | |
function fuck -d 'Correct your previous console command' | |
set -l eval_script (mktemp 2>/dev/null ; or mktemp -t 'thefuck') | |
thefuck $history[1] > $eval_script | |
eval (__thefuck_repl (cat $eval_script)) | |
rm $eval_script | |
end | |
alias git="hub" | |
alias serve="python -m SimpleHTTPServer" | |
set PATH $PATH ~/bin | |
set -g CDPATH . ~ ~/Sites | |
set fish_greeting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OSX Tweaks: