File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ basic_update () {
2626}
2727
2828dependencies_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
You can’t perform that action at this time.
0 commit comments