Add param passing to bA util function

This commit is contained in:
Keith Whyte 2021-06-04 08:33:18 +02:00
parent 1ffc4a47c7
commit fac1eeabb3

View file

@ -101,7 +101,7 @@ b<%= index %>() {
bA() {
source /home/rhizomatica/bin/vars.sh
tmux start-server
tmux new -s bts -d -n BTS0 "source /etc/profile.d/rccn-functions.sh ; b0"
tmux new -s bts -d -n BTS0 "source /etc/profile.d/rccn-functions.sh ; b0 $*"
# This won't look great for more than 4 windows, but
# that is not a lot of space anyway.
pane=0
@ -115,7 +115,7 @@ bA() {
else
split=v
fi
tmux split-window -t $pane -$split "source /etc/profile.d/rccn-functions.sh ; b$bts"
tmux split-window -t $pane -$split "source /etc/profile.d/rccn-functions.sh ; b$bts $*"
done
tmux attach -t bts
}