Skip to content

Commit d41b181

Browse files
committed
[.zshrc] Add systemd and zoxide, disable trash by default
1 parent b11e460 commit d41b181

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ __zsh__
5050
| `Ctrl-c` | Interrupt command. |
5151
| `Ctrl-f` | Expand wildcards to the list of full names. |
5252
| `Ctrl-d` | Exit shell. |
53-
| `rm` | Aliased to `trash` (use `trash-empty` to empty trash and `/bin/rm` for the real `rm`). |
53+
| `trash` | Moves file to trash. Use `trash-empty` to empty trash. |
5454

5555
__git__
5656

_zshrc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ plugins=(
3535
sudo
3636
tmux
3737
vi-mode
38+
systemd
3839
zsh-autosuggestions
3940
)
4041
source "${ZSH}/oh-my-zsh.sh"
4142

43+
# Enable fzf
4244
if hash fzf 2>/dev/null; then
4345
source /usr/share/fzf/key-bindings.zsh
4446
source /usr/share/fzf/completion.zsh
@@ -51,8 +53,13 @@ fi
5153

5254
# Enable pyenv
5355
if hash pyenv 2>/dev/null; then
54-
eval "$(pyenv init -)"
55-
eval "$(pyenv virtualenv-init -)"
56+
eval "$(pyenv init - zsh)"
57+
eval "$(pyenv virtualenv-init - zsh)"
58+
fi
59+
60+
# Enable zoxide
61+
if hash zoxide 2>/dev/null; then
62+
eval "$(zoxide init zsh)"
5663
fi
5764

5865
# Accept autosuggestions using Ctrl+Space
@@ -69,9 +76,9 @@ else
6976
fi
7077

7178
# Move to trash instead of hard rm.
72-
if hash trash 2>/dev/null; then
73-
alias rm='trash'
74-
fi
79+
# if hash trash 2>/dev/null; then
80+
# alias rm='trash'
81+
# fi
7582

7683
# Fast jump to git root.
7784
alias cgr='cd "$(git rev-parse --show-toplevel)"'

0 commit comments

Comments
 (0)