Skip to content

Commit

Permalink
setup: Use safe-rm
Browse files Browse the repository at this point in the history
Twice bitten, now extremely shy.
  • Loading branch information
lindhe committed Jan 19, 2025
1 parent 1639442 commit 1471a35
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/safe-rm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/home/*/
/home/*/*
1 change: 1 addition & 0 deletions .zsh_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ alias mkdir="mkdir -p"
alias monitors="${SCRIPTS_DIR}/laptop/monman.py -a && echo 'Monitors on'"
alias nvimrc="nvim ~/.config/nvim/init.vim"
alias open="xdg-open"
alias rm="safe-rm -v"
alias sudo="sudo -E "
alias tf="terraform"
alias tree="tree -C --gitignore"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sudo apt install \
tree zsh \
build-essential \
git git-lfs \
safe-rm \
tmux jq unzip shellcheck colordiff
```

Expand Down
2 changes: 2 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ if [[ ! -d "${SCRIPTS}" ]]; then
fi

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

sudo ln -fs "$(which safe-rm)" /usr/local/bin/rm
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if [[ "${FULL_SETUP}" == y ]]; then
ln -fs "${DOTFILES}/.config/i3" .
ln -fs "${DOTFILES}/.config/i3blocks/" .
ln -fs "${DOTFILES}/.config/monitors/" .
ln -fs "${DOTFILES}/.config/safe-rm" .
ln -fs "${DOTFILES}/.config/sway" .

popd
Expand Down

0 comments on commit 1471a35

Please sign in to comment.