add new install script

This commit is contained in:
Bryson Steck 2022-05-04 00:42:59 -06:00
parent 8b4eb008dd
commit 18e4d3d1a3
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
# exec tmux
#fi

20
install.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
# bash
if [[ -d $HOME/.bash ]]; then
mv $HOME/.bash $HOME/.bash.old
fi
if [[ -f $HOME/.bash_profile ]]; then
mv $HOME/.bash_profile $HOME/.bash_profile.old
fi
if [[ -f $HOME/.bashrc ]]; then
mv $HOME/.bashrc $HOME/.bashrc.old
fi
ln -s ./bash/.bash $HOME/.bash
ln -P ./bash/.bash_profile $HOME/.bash_profile
ln -P ./bash/.bashrc $HOME/.bashrc
source $HOME/.bash_profile
echo "Linked bash. Press [ENTER] to link x stuff (alacritty, firefox, xinit). Otherwise press ^C"
read