]> git.zndr.dk Git - dotfiles.git/commitdiff
Removed .bash_profile
authorJannik Zander <59698@grundfos.com>
Thu, 12 Jul 2018 07:42:18 +0000 (09:42 +0200)
committerJannik Zander <59698@grundfos.com>
Thu, 12 Jul 2018 07:42:18 +0000 (09:42 +0200)
.bash_completion
.bash_profile [deleted file]
.bashrc
.profile

index fb39c4e82941f7cfecfb8f97047a4aa3c28dca3f..ea03c1cb8b2a3cee487d369171d182640dfee5bc 100644 (file)
@@ -1,3 +1,5 @@
+[ -f /etc/bash_completion ] && . /etc/bash_completion
+
 # Add tab completion for `dit` by marking it as an alias for `git`
 _completion_loader git
 if type _git &>/dev/null; then
diff --git a/.bash_profile b/.bash_profile
deleted file mode 100644 (file)
index aa90e65..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# .bash_profile is for making sure that both the things in .profile and .bashrc are loaded for login shell.
-
-[ -f "${HOME}/.profile" ] && . "${HOME}/.profile"
-[ -f "${HOME}/.bashrc" ] && . "${HOME}/.bashrc"
diff --git a/.bashrc b/.bashrc
index 3c78dc39b31f76d833cda0030e25fd7be12151cf..ac45a721c8abfa0ba1cab61da85e439b36b5146a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -53,7 +53,6 @@ HISTFILE=~/.bash_history.local
 PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
 
 # Load completion, aliases, and local
-[ -f /etc/bash_completion ] && . /etc/bash_completion
-#[ -f ~/.bash_completion ] && . ~/.bash_completion;
+[ -f ~/.bash_completion ] && . ~/.bash_completion;
 [ -f ~/.bash_aliases ] && . ~/.bash_aliases;
 [ -f ~/.bashrc.local ] && . ~/.bashrc.local
index f1d08b3e3bfcaf4e3b6fe1a64bcdf3f0d1c58081..ad576d098036bdf3edc24914244fd8be41bb97fd 100644 (file)
--- a/.profile
+++ b/.profile
@@ -41,4 +41,6 @@ export LESS=" -R "
 # colored GCC warnings and errors
 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
 
-
+if [ ! "x${BASH_VERSION}" = "x" ]; then
+  [ -f "${HOME}/.bashrc" ] && . "${HOME}/.bashrc"
+fi