Skip to content

Instantly share code, notes, and snippets.

View ACupofAir's full-sized avatar
🍀
Pursue

Jun Wang ACupofAir

🍀
Pursue
View GitHub Profile
@ACupofAir
ACupofAir / .bashrc
Last active March 22, 2023 06:42
bash or zsh config for directory-stack(`dv` show dirs, `pd $index` go to the corresponding dir
#===========================Alias============================
# write by junw
alias dv="dirs -v"
alias pd=jump_to_dir
#=========================Function===========================
function jump_to_dir() {
if [ "$1" != "" ] ;then
pushd -$1 &> /dev/null
echo -e "${RED}Jump${NOCOLOR} to ${GREEN}${PWD}${NOCOLOR}"
else