diff options
author | ache <ache@ache.one> | 2018-06-02 12:03:26 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-06-02 12:03:26 +0200 |
commit | d15ae89d7cf341d5bf9fa55a421c694c87ae44a8 (patch) | |
tree | 99b0924d61126d3028e0f1c409420199c72d8e9d /config.fish | |
parent | go path add (diff) |
Update config
Diffstat (limited to 'config.fish')
-rw-r--r-- | config.fish | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config.fish b/config.fish index 2d21516..af93792 100644 --- a/config.fish +++ b/config.fish @@ -1,7 +1,12 @@ [ -z "$DISPLAY" ] ; and [ "$XDG_VTNR" = "1" ] ; and exec startx -export VISUAL=vim -export EDITOR=vim +if which nvim ^ /dev/null > /dev/null + export VISUAL=nvim + export EDITOR=nvim +else + export VISUAL=vim + export EDITOR=vim +end if [ -d "$HOME/.node_modules/bin" ] export PATH="$PATH:$HOME/.node_modules/bin" |