From c3d398b1f09254157d060b563f7dfa2811acf3a3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 6 Jan 2012 16:05:01 +0100 Subject: [PATCH] ZSH: Functions can't work with ~ --- .zsh/functions/get_cnt | 4 ++-- 1 file 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