Skip to content

Instantly share code, notes, and snippets.

@susieyy
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susieyy/8710fd385656ebf13f29 to your computer and use it in GitHub Desktop.
Save susieyy/8710fd385656ebf13f29 to your computer and use it in GitHub Desktop.
dotfiles/home/.config/fish/config.fish
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme agnoster # cean # zish # bobthefish # cmorrell.com # robbyrussell
# All built-in plugins can be found at ~/.oh-my-fish/plugins/
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Enable plugins by adding their name separated by a space to the line below.
set fish_plugins theme git rbenv rails brew bundler gem osx pbcopy better-alias gi peco z tmux
# Path to your custom folder (default path is ~/.oh-my-fish/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish
# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish
# Load $HOME/.profile
# egrep "^export " ~/.profile | while read e
# set var (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\1/")
# set value (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\2/")
#
# # remove surrounding quotes if existing
# set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/")
#
# if test $var = "PATH"
# # replace ":" by spaces. this is how PATH looks for Fish
# set value (echo $value | sed -E "s/:/ /g")
#
# # use eval because we need to expand the value
# eval set -xg $var $value
#
# continue
# end
#
# # evaluate variables. we can use eval because we most likely just used "$var"
# set value (eval echo $value)
#
# #echo "set -xg '$var' '$value' (via '$e')"
# set -xg $var $value
# end
function fish_user_key_bindings
bind \cr peco_select_history # Bind for prco history to Ctrl+r
bind \c] peco_change_directory # Bind for prco change directory to Ctrl+]
# bind \c] peco_select_repository # Bind for prco repository to Ctrl+]
end
alias rm='rmtrash'
alias l='less'
source "$HOME/.homesick/repos/homeshick/homeshick.fish"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment