You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
#!/bin/sh |
|
|
|
starship() { |
|
echo "Installing Starship configuration..." |
|
ln -sf $PWD/starship/starship.toml ~/.config/starship.toml |
|
} |
|
|
|
kitty() { |
|
echo "Installing Kitty configuration..." |
|
ln -sf $PWD/kitty ~/.config/kitty |
|
} |
|
|
|
alacritty() { |
|
echo "Installing Alacritty configuration..." |
|
ln -sf $PWD/alacritty ~/.config/alacritty |
|
} |
|
|
|
gitconfg() { |
|
echo "Installing git aliases..." |
|
git config --global alias.pushup 'push -u origin HEAD' |
|
git config --global alias.please 'push --force-with-lease' |
|
git config --global alias.new-branch 'checkout -b' |
|
git config --global alias.slog 'log --oneline --decorate' |
|
} |
|
|
|
bashcfg() { |
|
echo "Installing Bash scripts..." |
|
for file in ./bash/*.bash; |
|
do |
|
echo "### $file" >> ~/.bashrc |
|
cat $file >> ~/.bashrc |
|
echo "" >> ~/.bashrc |
|
done |
|
} |
|
|
|
bat() { |
|
if hash bat 2> /dev/null; |
|
then |
|
echo "Installing Bat configuration..." |
|
BAT_CONFIG_FILE=`bat --config-file` |
|
mkdir -p `dirname $BAT_CONFIG_FILE` |
|
ln -sf $PWD/bat/config $BAT_CONFIG_FILE |
|
fi |
|
} |
|
|
|
nvim() { |
|
echo "Installing NeoVim configuration..." |
|
mkdir -p $HOME/.config 2> /dev/null |
|
ln -sf $PWD/nvim ~/.config |
|
cd $HOME/.config/nvim |
|
git submodule init |
|
git submodule update |
|
cd - |
|
} |
|
|
|
nvim |
|
starship |
|
kitty |
|
alacritty |
|
gitconfg |
|
bashcfg
|
|
|