This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add `. ~/.zshrc-mark-jump` to ~/.zshrc for faster navigation with mark and jump | |
export MARKPATH=$HOME/.marks | |
function jump { | |
cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1" | |
} | |
function mark { | |
mark=$1 | |
if [ -z "$mark" ]; then marks; return; fi | |
if [ "$mark" = "." ]; then mark=$(basename "$PWD"); fi |
OlderNewer