This commit is contained in:
Andrejus
2021-05-02 23:57:48 +01:00
parent 7bba783de3
commit 38a8e81d69
2 changed files with 3 additions and 2 deletions

View File

@@ -6,3 +6,4 @@ Dockerfile
**/completions **/completions
**/conf.d **/conf.d
**/fish_variables **/fish_variables
**/functions

View File

@@ -5,12 +5,12 @@ current_shell=`grep "^$USER" /etc/passwd`
current_shell=${current_shell##*:} current_shell=${current_shell##*:}
fish_shell=`which fish` fish_shell=`which fish`
if [[ "$current_shell" != "$fish_shell" ]]; then if [[ "$current_shell" != "$fish_shell" ]]; then
chsh -s "$fish_shell" sudo usermod --shell "$fish_shell" "$USER"
fi fi
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish" fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
if ! [ -f $fisher_location ]; then if ! [ -f $fisher_location ]; then
fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher" fish -c "curl -sL https://git.io/fisher | source && fisher update"
fi fi
fish -c "fisher update" fish -c "fisher update"