diff options
author | 2025-02-13 14:13:49 +0530 | |
---|---|---|
committer | 2025-02-13 14:13:49 +0530 | |
commit | 8a2e1006b3b272126332aa064f3ad95387129544 (patch) | |
tree | 944c80ac612a65980d94a54ba11b6c7102037ecf /.config/zsh/oh-my-zsh/lib/misc.zsh | |
parent | dcbb16d8b08ff5956abef5e6478b59df2e93ad35 (diff) | |
download | dotfiles-master.tar.gz dotfiles-master.tar.bz2 dotfiles-master.zip |
Diffstat (limited to '.config/zsh/oh-my-zsh/lib/misc.zsh')
-rw-r--r-- | .config/zsh/oh-my-zsh/lib/misc.zsh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/zsh/oh-my-zsh/lib/misc.zsh b/.config/zsh/oh-my-zsh/lib/misc.zsh new file mode 100644 index 0000000..a5d3af9 --- /dev/null +++ b/.config/zsh/oh-my-zsh/lib/misc.zsh @@ -0,0 +1,35 @@ +autoload -Uz is-at-least + +# *-magic is known buggy in some versions; disable if so +if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then + for d in $fpath; do + if [[ -e "$d/url-quote-magic" ]]; then + if is-at-least 5.1; then + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic + fi + autoload -Uz url-quote-magic + zle -N self-insert url-quote-magic + break + fi + done +fi + +## jobs +setopt long_list_jobs + +env_default 'PAGER' 'less' +env_default 'LESS' '-R' + +## super user alias +alias _='sudo ' + +## more intelligent acking for ubuntu users +if (( $+commands[ack-grep] )); then + alias afind='ack-grep -il' +else + alias afind='ack -il' +fi + +# recognize comments +setopt interactivecomments |