-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using hardcore mode will break cp ../../ with ohmyzsh directory aliases #33
Comments
I'm not entirely certain what the bug is from reading this bug report. Could you give an example of expected behaviour and actual behaviour? I think the bug is that |
Sorry, should have made it more clear. This plugin suggest to rewrite the command ( It correctly says that This could be a bug with oh-my-zsh, I am not sure.. |
ah. Why does |
It is sourced here: https://github.com/robbyrussell/oh-my-zsh/blob/master/oh-my-zsh.sh#L31 The aliases are checked in _check_global_aliases(). This code on line 71:. Note that whatever command I type which include
Edit, using I have solved it by doing this: @@ -68,7 +68,7 @@ function _check_global_aliases() {
# Need to remove leading and trailing ' if they exist
v="${(Q)tokens[2]}"
- if [[ "$1" = *"$v"* ]]; then
+ if [[ "$1" = "$v"* ]]; then
ysu_global_message "$v" "$k"
found=true
fi
|
It does work.
|
Oh,
This command actually works. But Edit: Sorry for all the spamming :| |
Summary
This bug is encountered because of an alias built-in to oh-my-zsh. Using
cp ...
does not work.How to reproduce
Test directory:
Configuration:
Commands to execute
$ cd start/level/level
The aliases for "..." is defined here: https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/directories.zsh
The text was updated successfully, but these errors were encountered: