1
0
Fork 0

Use realpath for tmux default directory

main
Marissa Staib 5 years ago committed by GitHub
parent ece8822502
commit f5ad79e488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .bash_tmux

@ -2,9 +2,9 @@
# vim: set filetype=sh: # vim: set filetype=sh:
# tmux configuration files are found alongside this file # tmux configuration files are found alongside this file
export TMUX_CONF_DIR=${TMUX_CONF_DIR:-"$( dirname "${BASH_SOURCE[0]}" )"} export TMUX_CONF_DIR=${TMUX_CONF_DIR:-"$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )"}
# default status script just shows whether a reboot is needed # default status script just shows whether a reboot is needed
export TMUX_STATUS_SCRIPT=${TMUX_STATUS_SCRIPT:-$TMUX_CONF_DIR/.tmux.need-reboot.sh} export TMUX_STATUS_SCRIPT=${TMUX_STATUS_SCRIPT:-"$TMUX_CONF_DIR/.tmux.need-reboot.sh"}
function tmux_has_main() { function tmux_has_main() {
tmux -2 has-session -t "Main Screen" tmux -2 has-session -t "Main Screen"

Loading…
Cancel
Save