souring .bashrc in .bash_profile for ssh sessions

removed exit when non interactive from .bashrc
This commit is contained in:
quak
2024-12-28 12:13:56 +01:00
parent 7a04d5c64f
commit 78b3750e4a
2 changed files with 8 additions and 9 deletions

View File

@@ -2,3 +2,4 @@
# ~/.bash_profile
#
source "~/.bashrc"

View File

@@ -6,7 +6,7 @@
export HISTCONTROL=ignoreboth:erasedups
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# [[ $- != *i* ]] && return
# unbind shortcuts with ctrl+vim-bindings for navigation in tmux
#bind -r "\C-h"
@@ -44,13 +44,12 @@ export TERM="xterm-256color"
# extend PATH variable
# export PATH=$PATH:~/path/to/add
if [[ "$PATH" != *"dotfiles/misc/scripts/"* ]]; then
export PATH=$PATH:$HOME/dotfiles/misc/scripts/;
export PATH=$PATH:$HOME/dotfiles/misc/scripts/
fi
# setup starship
eval "$(starship init bash)"
# source shell scripts
source_list=()
@@ -74,4 +73,3 @@ for script in ${source_list[@]}; do
source ${script}
fi
done