diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-12-01 23:04:21 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-12-01 23:04:21 +0200 |
| commit | 1d0810ff6e40062fee2f24e4d8d0c06e6d28c932 (patch) | |
| tree | cc15f36b87de93aae83d6da9e1710763135d5822 /.config | |
| parent | 5d82b2528858b667925d812c3d9e4b43206bcec2 (diff) | |
| download | dotfiles-1d0810ff6e40062fee2f24e4d8d0c06e6d28c932.tar.gz dotfiles-1d0810ff6e40062fee2f24e4d8d0c06e6d28c932.zip | |
New aliases for to interact with trash
Diffstat (limited to '.config')
| -rw-r--r-- | .config/zsh/.zshrc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5eb8f1c..10887eb 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -228,9 +228,11 @@ bindkey "^W" backward-kill-word bindkey "^H" backward-delete-char # Control-h also deletes the previous char bindkey "^U" backward-kill-line -autoload -U edit-command-line -zle -N edit-command-line + +# Edit line in vim with alt-e +autoload edit-command-line; zle -N edit-command-line bindkey '^e' edit-command-line +#bindkey '^[e' edit-command-line # alt + e ########## Useful Commands/Alias ########## @@ -323,19 +325,25 @@ nnn() { alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias vi='nvim' alias nv='nvim' +alias trash="gio trash" +alias trash_restore='gio trash --restore "$(gio trash --list | fzf | cut -f 1)"' ########## Source Plugins, should be last ########## # load zsh-vi-mode #source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh + # Load zsh-syntax-highlighting source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null + # Load fzf keybindings and completion source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/completion.zsh source /usr/share/fzf-marks/fzf-marks.plugin.zsh 2>/dev/null + # Suggest aliases for commands source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh 2>/dev/null + # Load fish like auto suggestions source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh |
