diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-18T14·14+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-18T14·14+0000 |
commit | f7b3e0a7a92903307ef1f4c66992721be6e01e08 (patch) | |
tree | 11f1959ee6dc34d2f8b20e6425cbb85700b55c63 /configs/shared/zsh/zle.zsh | |
parent | bf33edaa6efbf3572d9335bb07b530af249de0d2 (diff) |
Drop OSX support; support desktop, laptop, cloudtop
Dropping support for OSX. Moving forward these dotfiles will depend on Linux systems. Furthermore, since I'm support a ~/bin, the machines that consume these dotfiles depend on i386 architectures. Linux and i386 are two dependencies that I'm okay with since the leverage this assumption provides, makes their existence tolerable. There is some Google leakage herein, which includes aliases, functions, and mentions of cloudtop. For now, this is okay. I may break the Google specific code into its own repository, but for now, this is less maintenance. This also introduces a ~/.profile instead of erroneously defining environment variables in my zshrc file, which was unadvised. This is a large commit and also introduces new aliases, variables, functions that I accumulated over the past week or so while migrating away from OSX and onto my new setup. Hopefully in the future I'll be more precise with my commits.
Diffstat (limited to 'configs/shared/zsh/zle.zsh')
-rw-r--r-- | configs/shared/zsh/zle.zsh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configs/shared/zsh/zle.zsh b/configs/shared/zsh/zle.zsh new file mode 100644 index 000000000000..4ded511ffccf --- /dev/null +++ b/configs/shared/zsh/zle.zsh @@ -0,0 +1,31 @@ +#!/usr/bin/env zsh + +zle_insert_subshell() { + LBUFFER+='$(' ; RBUFFER=")$RBUFFER" +} +zle -N zle_insert_subshell +bindkey '^j' zle_insert_subshell + +zle_insert_variable() { + LBUFFER+='${' ; RBUFFER="}$RBUFFER" +} +zle -N zle_insert_variable +bindkey '^v' zle_insert_variable + +zle_insert_2x_dash() { + LBUFFER+=' --' +} +zle -N zle_insert_2x_dash +bindkey '^[^f' zle_insert_2x_dash + +zle_insert_2x_quote() { + LBUFFER+=' "' ; RBUFFER="\"$RBUFFER" +} +zle -N zle_insert_2x_quote +bindkey '^["' zle_insert_2x_quote + +zle_insert_quote() { + LBUFFER+=" '" ; RBUFFER="'$RBUFFER" +} +zle -N zle_insert_quote +bindkey "^['" zle_insert_quote |