summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-01-19 10:13:50 +0100
committerache <ache@ache.one>2019-01-19 10:14:01 +0100
commit07b84f267bb281b544e8e199a4336e16687cba6d (patch)
tree5ba6580e0326f3fdc3555edb34b99c41aea03ba6
parentNew functions (diff)
Config with GO and JS support
-rw-r--r--config.fish24
1 files 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'