core: fix alias_value function

Fixes #5835
master
Marc Cornellà 8 years ago committed by GitHub
parent 052a6dbd16
commit 2c1ff85bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/functions.zsh

@ -51,8 +51,7 @@ function open_command() {
# 1 if it does not exist
#
function alias_value() {
alias "$1" | sed "s/^$1='\(.*\)'$/\1/"
test $(alias "$1")
(( $+aliases[$1] )) && echo $aliases[$1]
}
#

Loading…
Cancel
Save