Skip to content

Instantly share code, notes, and snippets.

@m-nakamura145
Created September 6, 2017 06:41
Show Gist options
  • Save m-nakamura145/1764111212ebd98cecc08e5d14fed2ab to your computer and use it in GitHub Desktop.
Save m-nakamura145/1764111212ebd98cecc08e5d14fed2ab to your computer and use it in GitHub Desktop.
config.fish
# for fish theme
set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
# alias
alias g git
alias gg 'git gr'
alias gs 'git status'
alias grep "grep --color -n -I --exclude='*.svn-*' --exclude='entries' --exclude='*/cache/*'"
alias ls "ls -G" # color for darwin
alias l "ls -la"
alias la "ls -la"
alias ll "ls -1"
# for ghq
alias ghqlist "cd (ghq list -p | peco)"
# peco
function fish_user_key_bindings
bind \cr peco_select_history # Bind for peco select history to Ctrl+R
bind \cf peco_change_directory # Bind for peco change directory to Ctrl+F
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment