diff options
author | Tom Willemsen | 2012-01-06 16:05:01 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-06 16:05:01 +0100 |
commit | c3d398b1f09254157d060b563f7dfa2811acf3a3 (patch) | |
tree | ad6c3c3ad4e3be93b017f414fda9e8107af006b8 /.zsh/functions | |
parent | 1a03a3b9c97cfeb407b3e23ef26b391528e5db35 (diff) | |
download | dotfiles-c3d398b1f09254157d060b563f7dfa2811acf3a3.tar.gz dotfiles-c3d398b1f09254157d060b563f7dfa2811acf3a3.zip |
ZSH: Functions can't work with ~
Diffstat (limited to '.zsh/functions')
-rw-r--r-- | .zsh/functions/get_cnt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.zsh/functions/get_cnt b/.zsh/functions/get_cnt index 5b06e00..5fc3d4f 100644 --- a/.zsh/functions/get_cnt +++ b/.zsh/functions/get_cnt @@ -1,8 +1,8 @@ # -*- mode: shell-script -*- if [ -n "$1" ]; then - if [ -e "~/.local/share/$1.cnt" ]; then - cnt=$(/bin/cat "~/.local/share/$1.cnt") + if [ -e "$HOME/.local/share/$1.cnt" ]; then + cnt=$(/bin/cat "$HOME/.local/share/$1.cnt") fi if [ -z "$cnt" ]; then |