souring .bashrc in .bash_profile for ssh sessions
removed exit when non interactive from .bashrc
This commit is contained in:
@@ -2,3 +2,4 @@
|
|||||||
# ~/.bash_profile
|
# ~/.bash_profile
|
||||||
#
|
#
|
||||||
|
|
||||||
|
source "~/.bashrc"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
export HISTCONTROL=ignoreboth:erasedups
|
export HISTCONTROL=ignoreboth:erasedups
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
# [[ $- != *i* ]] && return
|
||||||
|
|
||||||
# unbind shortcuts with ctrl+vim-bindings for navigation in tmux
|
# unbind shortcuts with ctrl+vim-bindings for navigation in tmux
|
||||||
#bind -r "\C-h"
|
#bind -r "\C-h"
|
||||||
@@ -44,34 +44,32 @@ export TERM="xterm-256color"
|
|||||||
# extend PATH variable
|
# extend PATH variable
|
||||||
# export PATH=$PATH:~/path/to/add
|
# export PATH=$PATH:~/path/to/add
|
||||||
if [[ "$PATH" != *"dotfiles/misc/scripts/"* ]]; then
|
if [[ "$PATH" != *"dotfiles/misc/scripts/"* ]]; then
|
||||||
export PATH=$PATH:$HOME/dotfiles/misc/scripts/;
|
export PATH=$PATH:$HOME/dotfiles/misc/scripts/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# setup starship
|
# setup starship
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
|
|
||||||
# source shell scripts
|
# source shell scripts
|
||||||
source_list=( )
|
source_list=()
|
||||||
|
|
||||||
## source alias file
|
## source alias file
|
||||||
source ~/.bash_alias
|
source ~/.bash_alias
|
||||||
|
|
||||||
## source custom functions for specific purposes
|
## source custom functions for specific purposes
|
||||||
script_path=${HOME}/dotfiles/misc/scripts/
|
script_path=${HOME}/dotfiles/misc/scripts/
|
||||||
source_list=( )
|
source_list=()
|
||||||
source_list+=( "${script_path}/colors.sh" )
|
source_list+=("${script_path}/colors.sh")
|
||||||
source_list+=( "${script_path}/dunst.sh" )
|
source_list+=("${script_path}/dunst.sh")
|
||||||
|
|
||||||
## source qmk setup script
|
## source qmk setup script
|
||||||
# source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh
|
# source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh
|
||||||
|
|
||||||
## source cargo setup script
|
## source cargo setup script
|
||||||
source_list+=( "$HOME/.cargo/env" )
|
source_list+=("$HOME/.cargo/env")
|
||||||
|
|
||||||
for script in ${source_list[@]}; do
|
for script in ${source_list[@]}; do
|
||||||
if [[ -f ${script} ]]; then
|
if [[ -f ${script} ]]; then
|
||||||
source ${script}
|
source ${script}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user