Skip to content

Commit 7fa33f4

Browse files
committed
Take 2
1 parent c7dadd7 commit 7fa33f4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ basic_update () {
2626
}
2727

2828
dependencies_ubuntu () {
29-
sudo apt update -y
3029
sudo add-apt-repository -y ppa:neovim-ppa/stable
30+
sudo apt update -y
3131
sudo apt install -y --no-install-recommends neovim vim ranger tmux
3232
sudo apt install -y --no-install-recommends ncdu wget w3m curl htop btop ripgrep bat nvtop
3333
sudo apt install -y --no-install-recommends xclip xsel
@@ -57,7 +57,9 @@ zsh_update() {
5757
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
5858
git clone https://github.com/zsh-users/zsh-autosuggestions.git $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions
5959

60-
mv $HOME/.zshrc $HOME/.zshrc_old
60+
if test -f $HOME/.zshrc; then
61+
mv $HOME/.zshrc $HOME/.zshrc_old
62+
fi
6163
cp $CONFIGDIR/zsh/zshrc $HOME/.zshrc && cp $CONFIGDIR/zsh/aliases $HOME/.zsh_aliases
6264

6365
sudo mkdir -p /usr/share/fonts/truetype/fonts-iosevka/
@@ -69,7 +71,7 @@ tmux_update() {
6971
mkdir -p $HOME/.tmux/
7072
cp tmux/tmux.conf $HOME/.tmux.conf
7173
git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
72-
tmux source-file $HOME/.tmux.conf
74+
tmux new-session -d && tmux source-file $HOME/.tmux.conf
7375
echo "tmux updated";
7476
}
7577

0 commit comments

Comments
 (0)