legacy-dotfiles/.zsh/functions/get_cnt
Tom Willemsen 63bbc2e2ea ZSH: Change prompt again
Change the prompt and divide into extra files.
2012-01-06 16:02:15 +01:00

15 lines
261 B
Bash

# -*- mode: shell-script -*-
if [ -n "$1" ]; then
if [ -e "~/.local/share/$1.cnt" ]; then
cnt=$(/bin/cat "~/.local/share/$1.cnt")
fi
if [ -z "$cnt" ]; then
cnt=0
fi
echo $cnt
else
echo "No count name specified" >&2
fi