1
0
Fork 0

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:
tastytea 2022-03-28 05:23:26 +02:00
parent 9d50a7a39d
commit 9cacdd0ce9
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 2 deletions

View File

@ -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