dots2/.antidote/functions/__antidote_print_path

8 lines
159 B
Bash

#!/bin/zsh
### Pretty print a path
if zstyle -t ':antidote:compatibility-mode' 'antibody'; then
echo "$1"
else
echo "$1" | sed -e "s|^$HOME/|\$HOME/|"
fi