Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 487 Bytes

tmux_run_bashrc.md

File metadata and controls

16 lines (11 loc) · 487 Bytes

Tmux running bashrc

Ubuntu sources bashrc everytime tmux launches, or splits windows. It could makes some results like $PATH repeating.

Not sure why, reference

Workaround

when sourcing files in bashrc, do like this:

if ! command -v petalinux-util &> /dev/null; then
  source ~/petalinux/settings.sh > /dev/null
  source ~/opt/Vivado/2021.2/settings64.sh > /dev/null
fi