Skip to content

Commit

Permalink
Replace ~ with /home/william
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennington committed Aug 10, 2013
1 parent 1ecd8c5 commit 477fe44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/mod/graphical
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/mod/ssh
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ 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
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
Expand Down
2 changes: 1 addition & 1 deletion lib/oh-my-zsh

0 comments on commit 477fe44

Please sign in to comment.