[bash] Fix bash profile initialization
Removed automatic initializations of zsh functions. Fixed not calling correct folders for bash aliases, environment variables and profile settings.
This commit is contained in:
parent
ce4473bf9f
commit
1ae92cfc2a
4 changed files with 40 additions and 28 deletions
23
home/.bashrc
23
home/.bashrc
|
|
@ -1,23 +1,20 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
# shellcheck disable=SC1090
|
||||
|
||||
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Load files from rc.d
|
||||
if [ -d $XDG_CONFIG_HOME/shell/rc.d ]; then
|
||||
for file in $XDG_CONFIG_HOME/shell/rc.d/*.sh; do
|
||||
source $file
|
||||
done
|
||||
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
|
||||
# load additional aliases
|
||||
if [ -d "$CONFDIR/sh/alias.d" ]; then
|
||||
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
|
||||
. "$_alias"
|
||||
done
|
||||
unset _alias
|
||||
fi
|
||||
|
||||
# Load files from bashrc.d
|
||||
if [ -d $XDG_CONFIG_HOME/shell/bashrc.d ]; then
|
||||
for file in $XDG_CONFIG_HOME/shell/bashrc.d/*.bash; do
|
||||
source $file
|
||||
done
|
||||
fi
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue