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 1e1757f
Show file tree
Hide file tree
Showing 4 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
3 changes: 3 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ echo -e "\n"

./bootstrap.sh

sudo ln -fs "$(which safe-rm)" /usr/local/bin/rm

if [[ "${FULL_SETUP}" == y ]]; then

pushd ~/.config
Expand All @@ -43,6 +45,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 1e1757f

Please sign in to comment.