vimrc zshrc

This commit is contained in:
2026-09-20 17:54:17 -07:00
parent b94010763d
commit 2077332b17
3 changed files with 24 additions and 251 deletions
+18
View File
@@ -20,6 +20,19 @@ alias ls='ls -F -G'
alias l='ls -l'
alias la='l -a'
alias xv='vim -X'
alias xcl='xclip -sel clip'
qwerty-nocaps() {
setxkbmap us -option terminate:ctrl_alt_bksp,compose:ralt,ctrl:nocaps
}
qwerty() {
setxkbmap us -option terminate:ctrl_alt_bksp,compose:ralt
}
QWERTY() {
setxkbmap us -option terminate:ctrl_alt_bksp,compose:ralt
}
genid () {
date | sha1sum | sed -e 's/^\([0-9a-z]\{7\}\).\+/\1/'
@@ -139,3 +152,8 @@ twoln () { echo '2' }
# syntax highlighting
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# this has multiple purposes:
# 1. sudo -e uses vim by default
# 2. codex/claude/git/etc use vim
export EDITOR='vim'