Zsh: Rename directory aliases -repo_<name>-dev → -devrepo_<name>
Turns out %~ can not look up the alias properly for -foo-bar if -foo is
defined. 😕
This commit is contained in:
parent
9d50a7a39d
commit
9cacdd0ce9
|
@ -125,8 +125,8 @@ command -v apt-cache > /dev/null && alias qs="apt-cache search --names-only"
|
|||
|
||||
# Directory aliases for Gentoo repos in my home dir
|
||||
for repo in gentoo guru; do
|
||||
[[ -d ~/Projekte/${repo} ]] && hash -d -- -repo_${repo}-dev=~/Projekte/${repo}
|
||||
[[ -d ~/Projekte/${repo} ]] && hash -d -- -devrepo_${repo}=~/Projekte/${repo}
|
||||
done
|
||||
if [[ -d ~/Projekte/overlay-tastytea ]]; then
|
||||
hash -d -- -repo_tastytea-dev=~/Projekte/overlay-tastytea
|
||||
hash -d -- -devrepo_tastytea=~/Projekte/overlay-tastytea
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue