From 7ba3fe2bb98124f45289a13b96a11fc08988c2c0 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Mon, 22 Oct 2012 12:32:31 +0400 Subject: [PATCH] Small fixes. --- includes/bash_aliases.bash | 3 --- sync.py | 2 +- tilde/bashrc.bash | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/bash_aliases.bash b/includes/bash_aliases.bash index d06053c..5d0732c 100644 --- a/includes/bash_aliases.bash +++ b/includes/bash_aliases.bash @@ -87,7 +87,4 @@ ginit() { grunt init:$@; } function proj { cd "$("$HOME/dotfiles/bin/opener.py" "$HOME/Dropbox/Projects" $1 -w project $2)"; } function repo { cd "$("$HOME/dotfiles/bin/opener.py" "$HOME/Dropbox/Projects" $1 -w repo $2)"; } function wptheme { cd "$("$HOME/dotfiles/bin/opener.py" "$HOME/Dropbox/Projects" $1 -w wptheme $2)"; } - -# Load external aliases -source ~/dotfiles/includes/functions.sh \ No newline at end of file diff --git a/sync.py b/sync.py index 203565b..4e9967e 100755 --- a/sync.py +++ b/sync.py @@ -38,7 +38,7 @@ def main(): source = os.path.relpath(filename, os.path.dirname(dotfile)) # Check that we aren't overwriting anything - if os.path.exists(dotfile): + if os.path.lexists(dotfile): if is_link_to(dotfile, source): continue diff --git a/tilde/bashrc.bash b/tilde/bashrc.bash index 050f10c..4e9e807 100644 --- a/tilde/bashrc.bash +++ b/tilde/bashrc.bash @@ -1,4 +1,3 @@ # https://github.com/janmoesen/tilde/blob/master/.bashrc -echo $TERM_PROGRAM -alias xxx="ls" + [ -n "$PS1" ] && source ~/.bash_profile; \ No newline at end of file