configs/kali-config.sh

20 lines
478 B
Bash
Raw Normal View History

2023-06-30 21:45:57 +02:00
#!/bin/bash
2023-07-04 21:33:01 +02:00
set -e
2023-06-30 21:45:57 +02:00
2023-07-04 21:33:01 +02:00
[ -f ~/.zsh-very.old ] && rm -rf ~/.zsh-very-old
[ -f ~/.zsh-old ] && mv ~/.zsh-old ~/.zsh-very-old
[ -f ~/.zsh ] && mv ~/.zsh ~/.zsh-old
2023-06-30 21:45:57 +02:00
cp -r $(pwd)/home/.zsh-kali ~
cp -r $(pwd)/home/.vimrc ~
cp -r $(pwd)/home/.local ~
cp -r $(pwd)/home/.config ~
cp -r $(pwd)/home/.tmux-server.conf ~/.tmux.conf
touch ~/.local.zsh
2023-08-27 04:02:23 +02:00
last_line=$(tail -n 1 ~/.zshrc)
if [ $last_line != "source ~/.zsh-kali/zshrc" ]; then
2023-07-04 21:33:01 +02:00
echo "source ~/.zsh-kali/zshrc" >> ~/.zshrc
fi