# # Useful vared wrappers to edit functions and aliases # # Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: http://git.madduck.net/v/etc/zsh.git # edalias() { [[ -z "$1" ]] && { echo "Usage: edalias " ; return 1 } vared aliases'[$1]'; } compdef _aliases edalias edfunc() { [[ -z "$1" ]] && { echo "Usage: edfunc " ; return 1 } vared functions'[$1]'; } compdef _functions edfunc # vim:ft=zsh