feat: structure work
- split files/ into separate dirs - rename scripts/ to script/, remove .sh extensions - remove publish scripts, tf module, use github host - remove unused install files
This commit is contained in:
17
script/install.d/02-fish.sh
Executable file
17
script/install.d/02-fish.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user