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 |
Solarized theme (useful for agnoster): https://github.com/altercation/solarized (iTerm2) https://github.com/tomislav/osx-terminal.app-colors-solarized (OSX Terminal)
iTerm2 Tweaks:
- Delete word: HEX: 0x17
- Delete line: HEX: 0x15
- Move to beginning of line: HEX: 0x01
- Move to end of line: HEX: 0x05
- Move to next word: ESCAPE: f
- Move to prev word: ESCAPE: b
OSX Tweaks:
- defaults write com.apple.screencapture location ~/Downloads
- defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
- defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Powerline fonts (needed for agnoster): https://github.com/powerline/fonts (SourceCodePro)