Add edit commands in editor capability
This commit is contained in:
parent
8766617e03
commit
90ea4dbd8e
1 changed files with 15 additions and 0 deletions
15
.zshrc
15
.zshrc
|
@ -1,6 +1,11 @@
|
|||
### Source local secrets
|
||||
[ -f ${HOME}/.config/zsh/secrets ] && . ${HOME}/.config/zsh/secrets
|
||||
|
||||
### edit cmds
|
||||
export VISUAL=vim
|
||||
autoload edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey "^X^E" edit-command-line
|
||||
### antibody
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
@ -89,6 +94,9 @@ export PATH=$PATH:/opt/flutter/bin/:"$HOME/.pub-cache/bin"
|
|||
export GOPATH=${HOME}/.go
|
||||
export PATH=$PATH:${GOPATH}/bin
|
||||
|
||||
## Ruby
|
||||
export PATH=${PATH}:/home/leo/.gem/ruby/2.7.0/bin
|
||||
|
||||
## Elixir
|
||||
export ERL_AFLAGS="-kernel shell_history enabled"
|
||||
|
||||
|
@ -100,6 +108,7 @@ alias syu="systemctl --user"
|
|||
alias sl="cmatrix -b -s"
|
||||
alias cd..="cmatrix -b -s -C yellow"
|
||||
alias lt="ls -lt"
|
||||
alias l="ls -1"
|
||||
alias lh="ls -lh"
|
||||
alias la="ls -la"
|
||||
alias ll="ls -l"
|
||||
|
@ -230,4 +239,10 @@ function sway-screens {
|
|||
# certo
|
||||
eval "$(_CERTO_COMPLETE=source_zsh certo)"
|
||||
|
||||
## Local only
|
||||
|
||||
if [ -f ${HOME}/.zshrc.local ]; then
|
||||
. ${HOME}/.zshrc.local
|
||||
fi
|
||||
|
||||
# vim: set ft=zsh et sw=0 ts=2 sts=0:
|
||||
|
|
Loading…
Reference in a new issue