From 0fd3fb5eb258bb1bbf08ffd11bc43bde7722f06a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 6 Jan 2016 19:23:48 +0800 Subject: Rename .config => _config --- _config/fish/config.fish | 30 ++++++++++++++++++++++++++++++ _config/fish/config.local.fish | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 _config/fish/config.fish create mode 100644 _config/fish/config.local.fish (limited to '_config/fish') diff --git a/_config/fish/config.fish b/_config/fish/config.fish new file mode 100644 index 0000000..24151d5 --- /dev/null +++ b/_config/fish/config.fish @@ -0,0 +1,30 @@ +# +# ~/.config/fish/config.fish +# +# +# Aaron LI +# 2015-09-26 +# + +# vi mode +fish_vi_mode + +set -U EDITOR vim + +## PATH +# ~/bin +if test -d $HOME/bin + set -U fish_user_paths $HOME/bin $fish_user_paths +end +# admin paths +if groups | grep -qE '\b(wheel|adm|sudo)\b' + set -U fish_user_paths $fish_user_paths /usr/local/sbin /usr/sbin /sbin +end + +# local config +set -l localconfig "$HOME/.config/fish/config.local.fish" +if test -f $localconfig + source $localconfig +end + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=fish: # diff --git a/_config/fish/config.local.fish b/_config/fish/config.local.fish new file mode 100644 index 0000000..5dab86b --- /dev/null +++ b/_config/fish/config.local.fish @@ -0,0 +1,35 @@ +# +# ~/.config/fish/config.local.fish +# +# Local configuration for fish. +# +# Aaron LI +# 2015-10-03 +# + + +## astro {{{ +# backup LD_LIBRARY_PATH settings +set -x LD_LIBRARY_PATH_BAK $LD_LIBRARY_PATH + +# heasoft +set -x HEADAS "$HOME/local/heasoft/heasoft-6.16/x86_64-unknown-linux-gnu" +function heainit + set -l hea_state (echo $PATH | tr ':' '\n' | grep 'heasoft') + if test "x$hea_state" = "x" + source $HEADAS/headas-init.fish + end + set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH_BAK +end + +# ciao +set -x CIAO_PATH "$HOME/local/ciao/ciao-4.6" +function ciaoinit + heainit + source "$CIAO_PATH/bin/ciao.fish" $argv + set -x CIAO_LD_LIBRARY_PATH "$ASCDS_INSTALL/ots/lib" +end +## astro }}} + + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=fish: # -- cgit v1.2.2