my dotz
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add fish configs

j3s 647b7c40 7482308e

+80
+18
.config/fish/MACC02VK5ECHTD7.fish
··· 1 + set -x PATH ~/.rvm/bin $PATH 2 + 3 + # env vars 4 + export CHEFUSER="jolson" 5 + export SSHUSER="jolson" 6 + export SSHKEY="~/.ssh/id_rsa" 7 + 8 + # aliases 9 + alias cdr='cd (find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks -type d -maxdepth 1 | selecta)' 10 + alias ls=gls 11 + alias tar=gtar 12 + alias sed=gsed 13 + alias be='bundle exec' 14 + alias brm='rm -rf ~/.berkshelf/cookbooks/ && rm -f Berksfile.lock && be berks install' 15 + alias tr=gtr 16 + 17 + # load rvm 18 + rvm default
+22
.config/fish/config.fish
··· 1 + #!/usr/bin/env fish 2 + set fish_greeting 3 + 4 + set -gx EDITOR vim 5 + set -gx LANG en_US.UTF-8 6 + set -gx LD_LIBRARY_PATH /usr/local/lib/:/usr/lib/ 7 + 8 + set -gx PATH ~/bin/(hostname) ~/bin /usr/local/bin /usr/bin /bin /sbin /usr/sbin 9 + set -gx PATH $PATH ~/.local/share/go/bin 10 + 11 + set -gx GOPATH ~/.local/share/go/ 12 + 13 + function fish_prompt 14 + printf (~/bin/short-pwd) 15 + echo '$ ' 16 + end 17 + 18 + alias vi=vim 19 + alias gs='git status' 20 + alias gd='git diff' 21 + alias gp='git pull --prune' 22 + source ~/.config/fish/(hostname).fish
+40
.config/fish/functions/rvm.fish
··· 1 + function rvm --description='Ruby enVironment Manager' 2 + # run RVM and capture the resulting environment 3 + set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX) 4 + # This finds where RVM's root directory is and sources scripts/rvm from within it. Then loads RVM in a clean environment and dumps the environment variables it generates out for us to use. 5 + bash -c 'PATH=$GEM_HOME/bin:$PATH;RVMA='~/.rvm/bin/rvm';source $(echo $RVMA | sed "s/\/bin\//\/scripts\//"); rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv 6 + 7 + # apply rvm_* and *PATH variables from the captured environment 8 + and eval (grep -E '^rvm|^PATH|^GEM_PATH|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//') 9 + # needed under fish >= 2.2.0 10 + and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g') 11 + 12 + # clean up 13 + rm -f $env_file 14 + end 15 + 16 + function __handle_rvmrc_stuff --on-variable PWD 17 + # Source a .rvmrc file in a directory after changing to it, if it exists. 18 + # To disable this feature, set rvm_project_rvmrc=0 in $HOME/.rvmrc 19 + if test "$rvm_project_rvmrc" != 0 20 + set -l cwd $PWD 21 + while true 22 + if contains $cwd "" $HOME "/" 23 + if test "$rvm_project_rvmrc_default" = 1 24 + rvm default 1>/dev/null 2>&1 25 + end 26 + break 27 + else 28 + if test -e .rvmrc -o -e .ruby-version -o -e .ruby-gemset -o -e Gemfile 29 + eval "rvm reload" > /dev/null 30 + eval "rvm rvmrc load" >/dev/null 31 + break 32 + else 33 + set cwd (dirname "$cwd") 34 + end 35 + end 36 + end 37 + 38 + set -e cwd 39 + end 40 + end