update: make config.fish to act as base config
This commit is contained in:
parent
9906181f61
commit
f7c456fbd1
1 changed files with 15 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
set fish_greeting ""
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
# >>> conda initialize >>>
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
# !! 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/jc/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||||
|
|
@ -9,10 +11,21 @@ set -g GOPATH $HOME/go
|
||||||
# Add gobin to path
|
# Add gobin to path
|
||||||
fish_add_path $GOPATH/bin
|
fish_add_path $GOPATH/bin
|
||||||
|
|
||||||
#x-server
|
# load configuration files based on OS
|
||||||
set -g DISPLAY $(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
|
switch (uname)
|
||||||
|
case Darwin
|
||||||
|
source (dirname (status --current-file))/config-darwin.fish
|
||||||
|
case Linux
|
||||||
|
source (dirname (status --current-file))/config-linux.fish
|
||||||
|
end
|
||||||
|
|
||||||
if type -q exa
|
if type -q exa
|
||||||
alias ll "exa -l -g --icons"
|
alias ll "exa -l -g --icons"
|
||||||
alias lla "ll -a"
|
alias lla "ll -a"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# allow local config overwrite
|
||||||
|
set LOCAL_CONFIG (dirname (status --current-file))/config-local.fish
|
||||||
|
if test -f $LOCAL_CONFIG
|
||||||
|
source $LOCAL_CONFIG
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue