aboutsummaryrefslogtreecommitdiff
path: root/profile.dot.link
diff options
context:
space:
mode:
Diffstat (limited to 'profile.dot.link')
-rw-r--r--profile.dot.link20
1 files changed, 11 insertions, 9 deletions
diff --git a/profile.dot.link b/profile.dot.link
index ed128ec..ef4c187 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -39,12 +39,14 @@ export EDITOR="vim -X"
export GIT_PS1_SHOWDIRTYSTATE=""
export GIT_PS1_SHOWUNTRACKEDFILES=""
-# Loaded git completion if needed
-if ! type __git_ps1 2> /dev/null | head -1 | grep -q function; then
- if [ -e "/etc/bash_completion.d/git-prompt" ]; then
- source /etc/bash_completion.d/git-prompt
- elif [ -e "/etc/bash_completion.d/git" ]; then
- source /etc/bash_completion.d/git
+# Load git completion if needed
+if [ ! -z "$BASH" ]; then
+ if ! type __git_ps1 2> /dev/null | head -1 | grep -q function; then
+ if [ -e "/etc/bash_completion.d/git-prompt" ]; then
+ . /etc/bash_completion.d/git-prompt
+ elif [ -e "/etc/bash_completion.d/git" ]; then
+ . /etc/bash_completion.d/git
+ fi
fi
fi
@@ -68,11 +70,11 @@ if [ -e "$HOME/.ssh/id_rsa" ]; then
/usr/bin/keychain -q $HOME/.ssh/id_rsa
if [ -e "$HOME/.keychain/$HOSTNAME-sh" ]; then
- source $HOME/.keychain/$HOSTNAME-sh
+ . $HOME/.keychain/$HOSTNAME-sh
fi
if [ -e "$HOME/.keychain/$HOSTNAME-sh-gpg" ]; then
- source $HOME/.keychain/$HOSTNAME-sh-gpg
+ . $HOME/.keychain/$HOSTNAME-sh-gpg
fi
#if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then
@@ -122,7 +124,7 @@ fi
if [ -n "$BASH_VERSION" ]; then
# Command prompt if no system-wide custom prompt is available
if ! type command_prompt &> /dev/null && [ -e "$HOME/apps/bash-prompt/prompt" ]; then
- source $HOME/apps/bash-prompt/prompt
+ . $HOME/apps/bash-prompt/prompt
fi
fi