mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
位于分支 ran9er
新文件: H_alias_cmd.zsh 新文件: H_alias_path.zsh 新文件: H_eval.zsh 新文件: H_helper.zsh 新文件: H_keys.zsh
This commit is contained in:
parent
1b7a3ea99a
commit
f067e49ebb
5 changed files with 108 additions and 0 deletions
15
lib/H_alias_path.zsh
Normal file
15
lib/H_alias_path.zsh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
function exist-path () {
|
||||
for p in $* ; do
|
||||
[[ -e $p ]] && echo $p && return;
|
||||
done
|
||||
}
|
||||
######
|
||||
hash -d WWW=$(exist-path /home/lighttpd/html ~/ROR/)
|
||||
hash -d MNT=$(exist-path /{mnt,media}/$USER /{mnt,media})
|
||||
hash -d PKG=$(exist-path /var/cache/{pacman/pkg,apt/archives})
|
||||
hash -d E="/etc/env.d"
|
||||
hash -d C="/etc/conf.d"
|
||||
hash -d I=$(exist-path /etc/{init.d,rc.d})
|
||||
hash -d X="/etc/X11"
|
||||
hash -d BK=$(exist-path /home/$USER/{config_bak,iff})
|
||||
hash -d HIST="$HISTDIR"
|
||||
Loading…
Add table
Add a link
Reference in a new issue