gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.61k stars 3.33k forks source link

Mounts shown on start and on creation #191

Closed warp4 closed 5 years ago

warp4 commented 5 years ago

When starting TMux and on creation of new pane & screen, my mounts are shown: /boot : already mounted / : ignored /home : already mounted /media/moun1 : already mounted /media/mount2 : already mounted /media/mount3 : already mounted /media/mount4 : already mounted /media/mount5 : already mounted /media/mount6 : already mounted /media/mount7 : already mounted /media/mount8 : already mounted /media/mount9 : already mounted /media/mount10 : already mounted /media/mount11 : ignored /media/mount12 : ignored /media/mount13 : ignored

gpakosz commented 5 years ago

Hello @warp4,

When tmux creates a pane, it launches a login shell, and likely you have mount commands in your ~/.bash_profile or in your ~/.bashrc file.

warp4 commented 5 years ago

Shoot, you are right. Forgot all about this, once added for test purpose, in my .bash_profile! Thank you.

gpakosz commented 5 years ago

BTW, you can test for $TMUX, e.g.

[ -z "$TMUX" ] && export TERM=xterm-256color
warp4 commented 5 years ago

Already added 'env TERM=xterm-256color /bin/bash ` to my guake terminal

warp4 commented 5 years ago

changed it by adding your idea to .bash_profile instead of Guake