(bash) path and .bash_profile
This commit is contained in:
@@ -2,10 +2,21 @@
|
|||||||
# ~/.bash_profile
|
# ~/.bash_profile
|
||||||
#
|
#
|
||||||
|
|
||||||
scripts="${HOME}/dotfiles/scripts"
|
# KEEP THIS!
|
||||||
if [[ -d "${scripts}" ]]; then
|
# important for window manager and menu app (fuzzel, rofi, ..)
|
||||||
export PATH="${PATH}:${scripts}"
|
# to find scripts and utilities
|
||||||
fi
|
|
||||||
unset scripts
|
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/repos/jlink"
|
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
|
||||||
|
|||||||
@@ -2,15 +2,25 @@
|
|||||||
# ~/.bash_profile
|
# ~/.bash_profile
|
||||||
#
|
#
|
||||||
|
|
||||||
# extend paths
|
# KEEP THIS!
|
||||||
scripts="${HOME}/dotfiles/scripts"
|
# important for window manager and menu app (fuzzel, rofi, ..)
|
||||||
if [[ -d "${scripts}" ]]; then
|
# to find scripts and utilities
|
||||||
export PATH="${PATH}:${scripts}"
|
|
||||||
fi
|
|
||||||
unset scripts
|
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/tools/Xilinx/Vivado/2021.1/bin"
|
export_paths=("${HOME}/dotfiles/scripts")
|
||||||
export PATH="$PATH:$HOME/tools/jlink_linux"
|
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
|
# vivado license
|
||||||
export XILINXD_LICENSE_FILE=26140@aberdeen.zhaw.ch
|
export XILINXD_LICENSE_FILE=26140@aberdeen.zhaw.ch
|
||||||
|
|||||||
@@ -111,3 +111,5 @@ done
|
|||||||
if [[ -t 0 && $- = *i* ]]; then
|
if [[ -t 0 && $- = *i* ]]; then
|
||||||
stty -ixon
|
stty -ixon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source $HOME/.bash_profile
|
||||||
|
|||||||
Reference in New Issue
Block a user