Compare commits

...

2 Commits

Author SHA1 Message Date
David Morgan ba35d6cacc
Make home and end keys work 2022-11-07 13:08:56 +00:00
David Morgan 37f9c483f5
Add alias for showing straight lockfile changes 2022-11-07 13:06:42 +00:00
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@
mkdir = "mkdir -v";
pp = "pushbullet push \"Pixel\" link \"\${1}\" \"\${1}\"";
upgrade_emacs = "cp ~/.emacs.d/straight/versions/default.el straight-versions-default-`date \"+%Y-%m-%d-%H%M%S\"`.el && emacs --batch -l \"~/.emacs.d/init.el\" -f \"my/upgrade-packages\"";
diff_emacs = "difft --color always --context 0 $(ls -d1v ~/straight-versions-default-*.el | tail -1) ~/.emacs.d/straight/versions/default.el | grep '\\[9[245]' | egrep -v '(gnu-elpa-mirror|nongnu-elpa|melpa|emacsmirror-mirror)'";
# Git log aliases from the omz git plugin
gl = "git pull";
@ -94,6 +95,11 @@
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# TODO should we use something based on ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE} ?
# make home and end work
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
# disable sort when completing `git checkout`
zstyle ''\':completion:*:git-checkout:*''\' sort false
# set descriptions format to enable group support