From 477fe44aaef9dc048ba980eaea14e62c90410ddb Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sat, 10 Aug 2013 09:51:01 -0700 Subject: [PATCH] Replace ~ with /home/william --- lib/mod/graphical | 6 +++--- lib/mod/ssh | 6 +++--- lib/oh-my-zsh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/mod/graphical b/lib/mod/graphical index 12c6213..eb964f7 100644 --- a/lib/mod/graphical +++ b/lib/mod/graphical @@ -21,11 +21,11 @@ graphical_runwm () { # Start the window manager if [ "$WM" = "awesome" ]; then - if [ -d ~/.config/wallpaper ]; then - if [ "`ls ~/.config/wallpaper | wc -l`" -gt "1" ]; then + if [ -d "$HOME/.config/wallpaper" ]; then + if [ "$(ls "$HOME/.config/wallpaper" | wc -l)" -gt "1" ]; then sleep 2 while true; do - awsetbg -r ~/.config/wallpaper + awsetbg -r "$HOME/.config/wallpaper" sleep 300 done & fi diff --git a/lib/mod/ssh b/lib/mod/ssh index 33aff9e..f4d1b81 100644 --- a/lib/mod/ssh +++ b/lib/mod/ssh @@ -63,13 +63,13 @@ ssh_defkey_one () { # Populates the authorized_keys file ssh_auth () { ssh_dir || return 1 - rm -f ~/.ssh/authorized_keys + rm -f "$HOME/.ssh/authorized_keys" local KEYS array_from_str KEYS "$(find $(dir_conf)/conf/ssh -type f | grep -v 'config$' | grep '.pub$')" array_forall KEYS ssh_auth_one } ssh_auth_one () { - cat "$1" >> ~/.ssh/authorized_keys + cat "$1" >> "$HOME/.ssh/authorized_keys" } # Makes sure the client configuration is installed @@ -77,7 +77,7 @@ ssh_client () { ssh_dir || return 1 symlink "$(dir_conf)/conf/ssh/config" "$HOME/.ssh/config" ssh-keygen -H >/dev/null 2>&1 - rm -f ~/.ssh/known_hosts.old + rm -f "$HOME/.ssh/known_hosts.old" } # Automatically determine how to configure ssh diff --git a/lib/oh-my-zsh b/lib/oh-my-zsh index 78dba75..bc3cadf 160000 --- a/lib/oh-my-zsh +++ b/lib/oh-my-zsh @@ -1 +1 @@ -Subproject commit 78dba754d183804079474aa2b1390bd96cb67583 +Subproject commit bc3cadf5c83697c176c9d4ce41c7fde7f57bf6e7