Add edit commands in editor capability

This commit is contained in:
Blallo 2020-05-08 15:57:53 +02:00
parent 8766617e03
commit 90ea4dbd8e
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

15
.zshrc
View file

@ -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: