simplify sourcing

This commit is contained in:
Matthias Kretschmann 2017-09-02 03:37:53 +02:00
parent 2a2c3057f5
commit b4eda04763
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 3 additions and 8 deletions

View File

@ -16,14 +16,9 @@ if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# The next line updates PATH for the Google Cloud SDK.
if [ -f /home/m/code/google-cloud-sdk/path.bash.inc ]; then
source '/home/m/code/google-cloud-sdk/path.bash.inc'
fi
# The next line enables shell command completion for gcloud.
if [ -f /home/m/code/google-cloud-sdk/completion.bash.inc ]; then
source '/home/m/code/google-cloud-sdk/completion.bash.inc'
if [ -f "$HOME/code/google-cloud-sdk/" ]; then
source "$HOME/code/google-cloud-sdk/path.bash.inc"
source "$HOME/code/google-cloud-sdk/completion.bash.inc"
fi
# define CDPATHs which are autocompleted from when doing cd