feat: convert fish -> zsh

This commit is contained in:
Andrejus
2023-10-24 00:43:56 +01:00
parent b1dcd8d68d
commit 62e6c0243e
11 changed files with 42 additions and 61 deletions

View File

@@ -1,17 +0,0 @@
#!/usr/bin/env bash
fish --version
current_shell=$(grep "^$USER" /etc/passwd)
current_shell=${current_shell##*:}
fish_shell=$(command -v fish)
if [[ "$current_shell" != "$fish_shell" ]]; then
sudo usermod --shell "$fish_shell" "$USER"
fi
fisher_location="$XDG_CONFIG_HOME/fish/functions/fisher.fish"
if ! [ -f $fisher_location ]; then
fish -c "curl -sL https://git.io/fisher | source && fisher update"
fi
fish -c "fisher update"
fish -c "fisher --version"

7
script/install.d/02-zsh.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install zsh shell.