Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
2c1ff85b
Unverified
Commit
2c1ff85b
authored
Aug 09, 2018
by
Marc Cornellà
Committed by
GitHub
Aug 09, 2018
Browse files
core: fix alias_value function
Fixes #5835
parent
052a6dbd
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/functions.zsh
View file @
2c1ff85b
...
@@ -51,8 +51,7 @@ function open_command() {
...
@@ -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
"
)
}
}
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment