diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-01 20:42:37 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-01 20:42:37 +0200 |
commit | 7f47c89331b9788192b084b967bead4c5270972d (patch) | |
tree | e76b9b6f568b96567f886d74d49d7efceb548e5e /shell_only.sh | |
parent | 7a13910eca29a2423aec1605c70f54b37e80ecbc (diff) |
Use ln -f flag to overwrite targets and shorten code
Diffstat (limited to 'shell_only.sh')
-rwxr-xr-x | shell_only.sh | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/shell_only.sh b/shell_only.sh index 87619e9..cf899b7 100755 --- a/shell_only.sh +++ b/shell_only.sh @@ -57,21 +57,18 @@ fi sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -ln -s ${PWD}/bin ~/bin - -rm ~/.zshrc -rm ~/.zsh_aliases +ln -sf ${PWD}/bin ~/bin mkdir -p ~/ -ln -s ${PWD}/zshrc ~/.zshrc -ln -s ${PWD}/zsh_aliases ~/.zsh_aliases -ln -s ${PWD}/tmux.conf ~/.tmux.conf -ln -s ${PWD}/vimrc ~/.vimrc +ln -sf ${PWD}/zshrc ~/.zshrc +ln -sf ${PWD}/zsh_aliases ~/.zsh_aliases +ln -sf ${PWD}/tmux.conf ~/.tmux.conf +ln -sf ${PWD}/vimrc ~/.vimrc mkdir -p ~/.oh-my-zsh/completions/ -ln -s ${PWD}/_totp ~/.oh-my-zsh/completions/_totp +ln -sf ${PWD}/_totp ~/.oh-my-zsh/completions/_totp mkdir -p ~/.local/bspwm-setup/ -ln -s ${PWD}/lockscreen.xkb ~/.local/bspwm-setup/lockscreen.xkb +ln -sf ${PWD}/lockscreen.xkb ~/.local/bspwm-setup/lockscreen.xkb curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |