zsh: Add alias for listing zsh options + values
This commit is contained in:
@@ -81,6 +81,9 @@
|
|||||||
alias grepdate='grep -E "(={8})|([:0-9]{10} [:0-9]{8})"'
|
alias grepdate='grep -E "(={8})|([:0-9]{10} [:0-9]{8})"'
|
||||||
# 'Temporary' shell in alternate mode for hiding commands in scrollback.
|
# 'Temporary' shell in alternate mode for hiding commands in scrollback.
|
||||||
alias tmpshell='tput smcup && zsh && tput rmcup'
|
alias tmpshell='tput smcup && zsh && tput rmcup'
|
||||||
|
# List options and their value (on|off) line by line. This makes it a lot
|
||||||
|
# easier to grep for activated options than using `setopt` and `unsetopt`.
|
||||||
|
alias listopts='printf "%s %s\n" "${(kv)options[@]}"'
|
||||||
|
|
||||||
# Named directories
|
# Named directories
|
||||||
hash -d docs="$HOME"/Documents/
|
hash -d docs="$HOME"/Documents/
|
||||||
|
|||||||
Reference in New Issue
Block a user