mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-21 16:53:33 +01:00
[bash] rename bash/rc and bash/bash.d
This commit is contained in:
parent
f67517fdec
commit
6b0d6af2f8
10 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
||||||
- clean: ['~']
|
- clean: ['~']
|
||||||
|
|
||||||
- link:
|
- link:
|
||||||
~/.bashrc: bash/rc
|
~/.bashrc: bash/bashrc
|
||||||
~/.bash_profile: bash/profile
|
~/.bash_profile: bash/profile
|
||||||
~/.config/git/config: git/config
|
~/.config/git/config: git/config
|
||||||
~/.config/git/ignore_global: git/ignore
|
~/.config/git/ignore_global: git/ignore
|
||||||
|
|
|
@ -30,8 +30,8 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load main things
|
# Load main things
|
||||||
if [ -d "$DOTBASH/bash.d" ]; then
|
if [ -d "$DOTBASH/bashrc.d" ]; then
|
||||||
for f in colours aliases history prompt_command password-store
|
for f in colours.bash aliases.bash history.bash prompt_command.bash password-store.bash network.bash
|
||||||
do
|
do
|
||||||
if [ -r "$DOTBASH/bash.d/$f" ]; then
|
if [ -r "$DOTBASH/bash.d/$f" ]; then
|
||||||
source "$DOTBASH/bash.d/$f"
|
source "$DOTBASH/bash.d/$f"
|
|
@ -22,7 +22,7 @@ alias l='ls -CF'
|
||||||
alias mkdir='mkdir -p -v'
|
alias mkdir='mkdir -p -v'
|
||||||
|
|
||||||
# Use vim if possible instead of vi
|
# Use vim if possible instead of vi
|
||||||
if [[ $(command -v vim) ]]; then
|
if command -v vim > /dev/null; then
|
||||||
alias vi='vim'
|
alias vi='vim'
|
||||||
else
|
else
|
||||||
alias vim='vi'
|
alias vim='vi'
|
|
@ -40,7 +40,9 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if this is BASH source BASHRC
|
# if this is BASH source BASHRC
|
||||||
if [ "$BASH" ] && [ -f $DOTFILES/bash/rc ]
|
DOTBASHRC="$DOTFILES/bash/bashrc"
|
||||||
|
if [ "$BASH" ] && [ -r "$DOTBASHRC" ]
|
||||||
then
|
then
|
||||||
source $DOTFILES/bash/rc
|
source "$DOTBASHRC"
|
||||||
fi
|
fi
|
||||||
|
unset DOTBASHRC
|
||||||
|
|
Loading…
Reference in a new issue