Skip to content

Instantly share code, notes, and snippets.

@ProLoser
Last active February 23, 2018 01:41
Show Gist options
  • Save ProLoser/45c51f0d104fb2e029b4 to your computer and use it in GitHub Desktop.
Save ProLoser/45c51f0d104fb2e029b4 to your computer and use it in GitHub Desktop.
My OSX fish (oh-my-fish) shell configuration file
# 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
@ProLoser
Copy link
Author

Powerline fonts (needed for agnoster): https://github.com/powerline/fonts (SourceCodePro)

@ProLoser
Copy link
Author

@ProLoser
Copy link
Author

ProLoser commented Feb 23, 2018

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

@ProLoser
Copy link
Author

ProLoser commented Feb 23, 2018

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