From 07b84f267bb281b544e8e199a4336e16687cba6d Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 19 Jan 2019 10:13:50 +0100 Subject: Config with GO and JS support --- config.fish | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/config.fish b/config.fish index af93792..f0aa0d8 100644 --- a/config.fish +++ b/config.fish @@ -1,21 +1,25 @@ [ -z "$DISPLAY" ] ; and [ "$XDG_VTNR" = "1" ] ; and exec startx if which nvim ^ /dev/null > /dev/null - export VISUAL=nvim - export EDITOR=nvim + set -x VISUAL nvim + set -x EDITOR nvim + set -x SYSTEMD_EDITOR nvim else - export VISUAL=vim - export EDITOR=vim + set -x VISUAL vim + set -x EDITOR vim + set -x SYSTEMD_EDITOR vim end -if [ -d "$HOME/.node_modules/bin" ] - export PATH="$PATH:$HOME/.node_modules/bin" +set -x NPM_PACKAGES "$HOME/.npm-packages" +set -x GOPATH "$HOME/.go" +set -x NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH" + +if [ -d "$NPM_PACKAGES/bin" ] + set -x PATH "$NPM_PACKAGES/bin" $PATH end -if [ -d "$HOME/go/bin" ] - export PATH="$PATH:$HOME/go/bin" +if [ -d "$GOPATH/bin" ] + set -x PATH "$GOPATH/bin" $PATH end - - # 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' -- cgit v1.2.3