step1. compile getTrueName.c
gcc -o getTrueName -framework Carbon getTrueName.c
step2. in .bash_profile file
add follow script
-------------
export PATH=$PATH:~/Documents/iSoft/gettruename
function cd {
if [ ${#1} == 0 ]; then
builtin cd
elif [ -d "${1}" ]; then
builtin cd "${1}"
elif [[ -f "${1}" || -L "${1}" ]]; then
path=$(getTrueName "$1")
builtin cd "$path"
else
builtin cd "${1}"
fi
}
-------------
-
Notifications
You must be signed in to change notification settings - Fork 1
CD command to open alies folders.
License
shiguol/CD2Alies
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
CD command to open alies folders.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published