diff options
author | ache <ache@ache.one> | 2019-03-15 03:14:48 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-03-15 03:14:48 +0100 |
commit | acb7ff991f5fcb3610195f66adb2a293c74f6e3f (patch) | |
tree | 77b5b632866557ca5bffd96f5f7f76640089a2bb | |
parent | Fix no ruby (diff) |
Init environment sway
-rw-r--r-- | config.fish | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/config.fish b/config.fish index c2d8fb0..350ba2c 100644 --- a/config.fish +++ b/config.fish @@ -1,4 +1,7 @@ -[ -z "$DISPLAY" ] ; and [ "$XDG_VTNR" = "1" ] ; and exec startx + +if which roxterm ^ /dev/null > /dev/null + set -x TERMINAL roxterm +end if which nvim ^ /dev/null > /dev/null set -x VISUAL nvim @@ -14,7 +17,7 @@ if which ruby ^ /dev/null > /dev/null set RUBY_PATH (ruby -e 'print Gem.user_dir')/bin end -set -x NPM_PACKAGES "$HOME/.npm-packages" +set -x NPM_PACKAGES "$HOME/.npm_packages" set -x GOPATH "$HOME/.go" set -x NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH" @@ -28,5 +31,13 @@ if [ -d "$RUBY_PATH" ] set -x PATH $PATH "$RUBY_PATH" end +if which fcitx ^ /dev/null > /dev/null + set -x GTK_IM_MODULE "fcitx" + set -x QT_IM_MODULE "fcitx" + set -x XMODIFIERS "@im=fcitx" +end + +[ -z "$DISPLAY" ] ; and [ "$XDG_VTNR" = "1" ] ; and sway + # alias gobjc='gcc -L /usr/lib/GNUstep/Libraries/gnustep-base -lgnustep-base -fconstant-string-class=NSConstantString' # alias smpd='ssh achessh@ache.one -fp 21 ssh ache@localhost -p 60065 -L 8091:localhost:8091 -fN' |