Skip to content

Instantly share code, notes, and snippets.

@varkadov
Last active July 4, 2019 10:56
Show Gist options
  • Save varkadov/305c20055ccc0ed1d549586d79d30f34 to your computer and use it in GitHub Desktop.
Save varkadov/305c20055ccc0ed1d549586d79d30f34 to your computer and use it in GitHub Desktop.
# Turn on vim mode
fish_vi_key_bindings
# Key bindings
function fish_user_key_bindings
bind -M insert \cp history-search-backward
bind -M insert \cn history-search-forward
bind -M insert \cf forward-char
# for mode in insert default visual
# bind -M $mode \cf forward-char
#end
end
# Set normal blue color
set -gx LSCOLORS gxfxcxdxbxegedabagacad
function ls --description 'List contents of directory'
command ls -lFG $argv
end
function golan
command /usr/local/bin/goland $argv
end
set PATH node_modules/.bin $PATH
# Allow 256 colors in iTerm2 for pretty vim colors
set -gx CLICOLOR 1
set -gx TERM xterm-256color
# Theme config
set -gx theme_display_date no
function fish_greeting
end
function cddir
command mkdir $argv; cd $argv
end
function git
command env LC_ALL=C git $argv
end
# nvm use 7.2.1
# opam configuration
source /Users/varkadov/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
set -g fish_user_paths "/usr/local/opt/curl/bin" $fish_user_paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment