Testing
This commit is contained in:
parent
e97a472473
commit
e27bf17180
10
update.sh
10
update.sh
@ -22,6 +22,12 @@ else
|
|||||||
DESKTOP="no"
|
DESKTOP="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(systemd-detect-virt)" == "wsl" ]; then
|
||||||
|
WSL="yes"
|
||||||
|
else
|
||||||
|
WSL="no"
|
||||||
|
fi
|
||||||
|
|
||||||
# Ubuntu 20.04 workaround
|
# Ubuntu 20.04 workaround
|
||||||
printf -- '\033[33m Remove neovim if already installed\n\033[37m'
|
printf -- '\033[33m Remove neovim if already installed\n\033[37m'
|
||||||
if [ "$(dpkg -l | awk '/nala/ {print }'|wc -l)" -ge 1 ]; then
|
if [ "$(dpkg -l | awk '/nala/ {print }'|wc -l)" -ge 1 ]; then
|
||||||
@ -351,7 +357,7 @@ echo 'alias lss="eza -1 -l --icons=auto -h -g --total-size -o --no-permissions -
|
|||||||
echo 'source ~/.fzf.bash' >> ~/.bashrc
|
echo 'source ~/.fzf.bash' >> ~/.bashrc
|
||||||
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
|
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
|
||||||
|
|
||||||
if [ $DESKTOP == "no" ]; then
|
if [ $DESKTOP == "no" ] && [ $WSL == "no" ]; then
|
||||||
# Add tmux/nvim autostart to bashrc
|
# Add tmux/nvim autostart to bashrc
|
||||||
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
||||||
echo "# TMUX" >> ~/.bashrc
|
echo "# TMUX" >> ~/.bashrc
|
||||||
@ -362,7 +368,7 @@ if [ $DESKTOP == "no" ]; then
|
|||||||
echo "fi" >> ~/.bashrc
|
echo "fi" >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $DESKTOP == "yes" ]; then
|
if [ $DESKTOP == "yes" ] || [ $WSL == "yes" ]; then
|
||||||
# Add tmux/nvim autostart to bashrc
|
# Add tmux/nvim autostart to bashrc
|
||||||
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
||||||
echo "# TMUX" >> ~/.bashrc
|
echo "# TMUX" >> ~/.bashrc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user