Browse Source

Updated install

master
Julio Biason 3 years ago
parent
commit
aa4c3c7d61
  1. 33
      install.sh

33
install.sh

@ -5,14 +5,9 @@ starship() {
ln -sf $PWD/starship/starship.toml ~/.config/starship.toml ln -sf $PWD/starship/starship.toml ~/.config/starship.toml
} }
kitty() {
echo "Installing Kitty configuration..."
ln -sf $PWD/kitty ~/.config/kitty
}
alacritty() { alacritty() {
echo "Installing Alacritty configuration..." echo "Installing Alacritty configuration..."
ln -sf $PWD/alacritty ~/.config/alacritty ln -sf $PWD/alacritty $HOME/.config/alacritty
} }
gitconfg() { gitconfg() {
@ -23,16 +18,6 @@ gitconfg() {
git config --global alias.slog 'log --oneline --decorate' 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() { bat() {
if hash bat 2> /dev/null; if hash bat 2> /dev/null;
then then
@ -46,16 +31,26 @@ bat() {
nvim() { nvim() {
echo "Installing NeoVim configuration..." echo "Installing NeoVim configuration..."
mkdir -p $HOME/.config 2> /dev/null mkdir -p $HOME/.config 2> /dev/null
ln -sf $PWD/nvim ~/.config ln -sf $PWD/nvim $HOME/.config
cd $HOME/.config/nvim cd $HOME/.config/nvim
git submodule init git submodule init
git submodule update git submodule update
cd - cd -
} }
emacs() {
echo "Installing Emacs configuration..."
ln -sf $PWD/emacs.d $HOME/.emacs.d
}
fish() {
echo "Installing Fish configuration..."
mkdir -p $HOME/.config 2> /dev/null
ln -sf $PWD/fish $HOME/.config/
}
nvim nvim
starship starship
kitty fish
alacritty alacritty
gitconfg gitconfg
bashcfg

Loading…
Cancel
Save