aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2016-10-25 13:04:26 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2016-10-25 13:04:26 +0200
commit4da1cb35a9d324f52a1074a670d127d0fdeac63a (patch)
tree8b5285eb74125ffe5178f81907115875800a635a /config
parent527cc270d660cbfd4076f5ff4af3471988322eea (diff)
downloaddotfiles-4da1cb35a9d324f52a1074a670d127d0fdeac63a.tar.gz
dotfiles-4da1cb35a9d324f52a1074a670d127d0fdeac63a.zip
fish-config: don't check if ENV VARS are already set
Use vis if it is installed instead of vim.
Diffstat (limited to 'config')
-rw-r--r--config/fish/config.fish32
1 files changed, 13 insertions, 19 deletions
diff --git a/config/fish/config.fish b/config/fish/config.fish
index 4224913..8861af6 100644
--- a/config/fish/config.fish
+++ b/config/fish/config.fish
@@ -1,7 +1,5 @@
# export the path to our dotfiles
-if not set -q DOTFILES_LOCATION
- set -Ux DOTFILES_LOCATION (get_dotfiles_location)
-end
+set -x DOTFILES_LOCATION (get_dotfiles_location)
# autoload functions and completions in .dotfiles
@@ -13,33 +11,29 @@ set fish_complete_path $DOTFILES_LOCATION/config/fish/completions $fish_complete
set fish_function_path $DOTFILES_LOCATION/config/fish/functions/git-alias $fish_function_path
-if not set -q __fish_git_prompt_show_informative_status
- set -Ux __fish_git_prompt_show_informative_status true
-end
+set -x __fish_git_prompt_show_informative_status true
-if not set -q MPD_PORT
- set -Ux MPD_PORT 6601
-end
+set -x MPD_PORT 6601
-if not set -q EDITOR
- set -Ux EDITOR vim
+if type -q vis
+set -x EDITOR vis
+else
+set -x EDITOR vim
end
-if not set -q BROWSER
- set -Ux BROWSER qutebrowser
-end
+set -x VISUAL $EDITOR
-if not set -q SSH_KEY_PATH
- set -Ux SSH_KEY_PATH $HOME/.ssh/rsa_id
-end
+set -x BROWSER qutebrowser
+
+set -x SSH_KEY_PATH $HOME/.ssh/rsa_id
# set yaourt specific VARS
if type -q yaourt
if not set -q AURUSEGIT
- set -Ux AURUSEGIT 1
+ set -x AURUSEGIT 1
end
if not set -q AURSHOWDIFF
- set -Ux AURSHOWDIFF 1
+ set -x AURSHOWDIFF 1
end
end