summaryrefslogtreecommitdiff
path: root/config.fish
blob: c2d8fb0081cc818cc8f0e2b8399a9908e25e03f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[ -z "$DISPLAY" ] ; and [ "$XDG_VTNR" = "1" ] ; and exec startx

if which nvim ^ /dev/null > /dev/null
  set -x VISUAL nvim
  set -x EDITOR nvim
  set -x SYSTEMD_EDITOR nvim
else
  set -x VISUAL vim
  set -x EDITOR vim
  set -x SYSTEMD_EDITOR vim
end

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 GOPATH "$HOME/.go"
set -x NODE_PATH "$NPM_PACKAGES/lib/node_modules:$NODE_PATH"

if [ -d "$NPM_PACKAGES/bin" ]
    set -x PATH $PATH "$NPM_PACKAGES/bin"
end
if [ -d "$GOPATH/bin" ]
    set -x PATH $PATH "$GOPATH/bin"
end
if [ -d "$RUBY_PATH" ]
    set -x PATH $PATH "$RUBY_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'