Skip to content

Commit 1471a35

Browse files
committed
setup: Use safe-rm
Twice bitten, now extremely shy.
1 parent 1639442 commit 1471a35

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

.config/safe-rm

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/home/*/
2+
/home/*/*

.zsh_aliases

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ alias mkdir="mkdir -p"
4646
alias monitors="${SCRIPTS_DIR}/laptop/monman.py -a && echo 'Monitors on'"
4747
alias nvimrc="nvim ~/.config/nvim/init.vim"
4848
alias open="xdg-open"
49+
alias rm="safe-rm -v"
4950
alias sudo="sudo -E "
5051
alias tf="terraform"
5152
alias tree="tree -C --gitignore"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sudo apt install \
2222
tree zsh \
2323
build-essential \
2424
git git-lfs \
25+
safe-rm \
2526
tmux jq unzip shellcheck colordiff
2627
```
2728

bootstrap.sh

+2
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ if [[ ! -d "${SCRIPTS}" ]]; then
4747
fi
4848

4949
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
50+
51+
sudo ln -fs "$(which safe-rm)" /usr/local/bin/rm

setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if [[ "${FULL_SETUP}" == y ]]; then
4343
ln -fs "${DOTFILES}/.config/i3" .
4444
ln -fs "${DOTFILES}/.config/i3blocks/" .
4545
ln -fs "${DOTFILES}/.config/monitors/" .
46+
ln -fs "${DOTFILES}/.config/safe-rm" .
4647
ln -fs "${DOTFILES}/.config/sway" .
4748

4849
popd

0 commit comments

Comments
 (0)