Skip to content

Instantly share code, notes, and snippets.

@TheDataLeek
Created February 23, 2016 04:19
Show Gist options
  • Select an option

  • Save TheDataLeek/045f10265e80cf19afc2 to your computer and use it in GitHub Desktop.

Select an option

Save TheDataLeek/045f10265e80cf19afc2 to your computer and use it in GitHub Desktop.
. /home/william/.config/fish/vi-mode.fish
function pip2_update_all
sudo pip2 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
end
function pip3_update_all
sudo pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
end
function fish_user_key_bindings
vi_mode_insert
end
alias ls "ls -lah --color"
alias tmux "env TERM=xterm-256color tmux"
function fish_title; end
function tl
tmux list-sessions
end
function ta
tmux attach-session -t $argv
end
function vim
env PYTHONPATH=/usr/lib/python2.7/site-packages vim $argv
end
alias ping "ping -c 5"
set -x WORKON_HOME=~/envs
set -x XDG_CONFIG_HOME=~
function speedtest
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test100.zip
end
function gitbook
nodejs /usr/local/bin/gitbook
end
#set fish_function_path $fish_function_path "/usr/local/lib/python2.7/dist-packages/powerline/bindings/fish"
#powerline-setup
set -U fish_user_paths $fish_user_paths ~/bin
function fuck -d 'Correct your previous console command'
set -l exit_code $status
set -l eval_script (mktemp 2>/dev/null ; or mktemp -t 'thefuck')
set -l fucked_up_commandd $history[1]
thefuck $fucked_up_commandd > $eval_script
. $eval_script
rm $eval_script
if test $exit_code -ne 0
history --delete $fucked_up_commandd
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment