1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-19 04:10:09 +00:00

core: fix alias_value function

Fixes #5835
This commit is contained in:
Marc Cornellà 2018-08-09 19:49:02 +02:00 committed by GitHub
parent 052a6dbd16
commit 2c1ff85bb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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