(bash) moved contents of .bash_profile to a different file to avoid
source loops
This commit is contained in:
22
bash-conf-home/.bash_paths
Normal file
22
bash-conf-home/.bash_paths
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#
|
||||||
|
# ~/.bash_profile
|
||||||
|
#
|
||||||
|
|
||||||
|
# KEEP THIS!
|
||||||
|
# important for window manager and menu app (fuzzel, rofi, ..)
|
||||||
|
# to find scripts and utilities
|
||||||
|
|
||||||
|
export_paths=("${HOME}/dotfiles/scripts")
|
||||||
|
export_paths+=("$HOME/tools/jlink")
|
||||||
|
|
||||||
|
for entry in ${export_paths[@]}; do
|
||||||
|
if ! [[ -d "${entry}" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if [[ "$PATH" == *"${entry}"* ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
export PATH="${PATH}:${entry}"
|
||||||
|
done
|
||||||
|
|
||||||
|
unset export_paths
|
||||||
@@ -1,22 +1,3 @@
|
|||||||
#
|
if [[ -f ~/.bashrc ]]; then
|
||||||
# ~/.bash_profile
|
source ~/.bashrc
|
||||||
#
|
|
||||||
|
|
||||||
# KEEP THIS!
|
|
||||||
# important for window manager and menu app (fuzzel, rofi, ..)
|
|
||||||
# to find scripts and utilities
|
|
||||||
|
|
||||||
export_paths=("${HOME}/dotfiles/scripts")
|
|
||||||
export_paths+=("$HOME/tools/jlink")
|
|
||||||
|
|
||||||
for entry in ${export_paths[@]}; do
|
|
||||||
if ! [[ -d "${entry}" ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
fi
|
||||||
if [[ "$PATH" == *"${entry}"* ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
export PATH="${PATH}:${entry}"
|
|
||||||
done
|
|
||||||
|
|
||||||
unset export_paths
|
|
||||||
|
|||||||
26
bash-conf-work/.bash_paths
Normal file
26
bash-conf-work/.bash_paths
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#
|
||||||
|
# ~/.bash_profile
|
||||||
|
#
|
||||||
|
|
||||||
|
# KEEP THIS!
|
||||||
|
# important for window manager and menu app (fuzzel, rofi, ..)
|
||||||
|
# to find scripts and utilities
|
||||||
|
|
||||||
|
export_paths=("${HOME}/dotfiles/scripts")
|
||||||
|
export_paths+=("$HOME/tools/Xilinx/Vivado/2021.1/bin")
|
||||||
|
export_paths+=("$HOME/tools/jlink")
|
||||||
|
|
||||||
|
for entry in ${export_paths[@]}; do
|
||||||
|
if ! [[ -d "${entry}" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if [[ "$PATH" == *"${entry}"* ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
export PATH="${PATH}:${entry}"
|
||||||
|
done
|
||||||
|
|
||||||
|
unset export_paths
|
||||||
|
|
||||||
|
# vivado license
|
||||||
|
export XILINXD_LICENSE_FILE=26140@aberdeen.zhaw.ch
|
||||||
@@ -1,26 +1,3 @@
|
|||||||
#
|
if [[ -f ~/.bashrc ]]; then
|
||||||
# ~/.bash_profile
|
source ~/.bashrc
|
||||||
#
|
|
||||||
|
|
||||||
# KEEP THIS!
|
|
||||||
# important for window manager and menu app (fuzzel, rofi, ..)
|
|
||||||
# to find scripts and utilities
|
|
||||||
|
|
||||||
export_paths=("${HOME}/dotfiles/scripts")
|
|
||||||
export_paths+=("$HOME/tools/Xilinx/Vivado/2021.1/bin")
|
|
||||||
export_paths+=("$HOME/tools/jlink")
|
|
||||||
|
|
||||||
for entry in ${export_paths[@]}; do
|
|
||||||
if ! [[ -d "${entry}" ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
fi
|
||||||
if [[ "$PATH" == *"${entry}"* ]]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
export PATH="${PATH}:${entry}"
|
|
||||||
done
|
|
||||||
|
|
||||||
unset export_paths
|
|
||||||
|
|
||||||
# vivado license
|
|
||||||
export XILINXD_LICENSE_FILE=26140@aberdeen.zhaw.ch
|
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ fi
|
|||||||
## source various scripts
|
## source various scripts
|
||||||
personal_scripts=${HOME}/dotfiles/scripts/
|
personal_scripts=${HOME}/dotfiles/scripts/
|
||||||
source_list=()
|
source_list=()
|
||||||
|
source_list+=("$HOME/.bash_paths")
|
||||||
source_list+=("$HOME/.bash_alias")
|
source_list+=("$HOME/.bash_alias")
|
||||||
source_list+=("$HOME/.bash_profile")
|
|
||||||
source_list+=("${personal_scripts}/navigate_bash_setup.sh")
|
source_list+=("${personal_scripts}/navigate_bash_setup.sh")
|
||||||
source_list+=("${personal_scripts}/fzf-bash-history.sh")
|
source_list+=("${personal_scripts}/fzf-bash-history.sh")
|
||||||
source_list+=("${personal_scripts}/colors.sh")
|
source_list+=("${personal_scripts}/colors.sh")
|
||||||
|
|||||||
Reference in New Issue
Block a user