update: generalize the command to actvate conda and load config if file exists
This commit is contained in:
parent
3d14d339b4
commit
54c549f764
1 changed files with 9 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ set fish_greeting ""
|
|||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
status is-interactive && eval /home/jc/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||
status is-interactive && eval $HOME/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||
# <<< conda initialize <<<
|
||||
|
||||
# Go
|
||||
|
|
@ -14,9 +14,15 @@ fish_add_path $GOPATH/bin
|
|||
# load configuration files based on OS
|
||||
switch (uname)
|
||||
case Darwin
|
||||
source (dirname (status --current-file))/config-darwin.fish
|
||||
set DARWIN_CONFIG (dirname (status --current-file))/config-darwin.fish
|
||||
if test -f $DARWIN_CONFIG
|
||||
source $DARWIN_CONFIG
|
||||
end
|
||||
case Linux
|
||||
source (dirname (status --current-file))/config-linux.fish
|
||||
set LINUX_CONFIG (dirname (status --current-file))/config-linux.fish
|
||||
if test -f $LINUX_CONFIG
|
||||
source $LINUX_CONFIG
|
||||
end
|
||||
end
|
||||
|
||||
if type -q exa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue