summaryrefslogtreecommitdiffstats
path: root/.zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-01-06 16:05:01 +0100
committerGravatar Tom Willemsen2012-01-06 16:05:01 +0100
commitc3d398b1f09254157d060b563f7dfa2811acf3a3 (patch)
treead6c3c3ad4e3be93b017f414fda9e8107af006b8 /.zsh
parent1a03a3b9c97cfeb407b3e23ef26b391528e5db35 (diff)
downloaddotfiles-c3d398b1f09254157d060b563f7dfa2811acf3a3.tar.gz
dotfiles-c3d398b1f09254157d060b563f7dfa2811acf3a3.zip
ZSH: Functions can't work with ~
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/functions/get_cnt4
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