fish shell
This commit is contained in:
4
.config/fish/functions/config.fish
Normal file
4
.config/fish/functions/config.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
# Defined in - @ line 0
|
||||
function config --description 'alias config=/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
|
||||
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $argv;
|
||||
end
|
||||
13
.config/install-scripts/002-shell.sh
Executable file
13
.config/install-scripts/002-shell.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
if [[ ! -f "/usr/bin/fish" ]]; then
|
||||
if [[ "$EUID" -eq 0 ]]; then
|
||||
apt-get update
|
||||
apt-get install fish
|
||||
else
|
||||
sudo apt-get update
|
||||
sudo apt-get install fish
|
||||
fi
|
||||
fi
|
||||
|
||||
chsh -s /usr/bin/fish
|
||||
|
||||
Reference in New Issue
Block a user