Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

yea i always do `tmux new -s dev` to start one and `tmux attach -t dev` to attach

correct me if im wrong but it seems like i can just do `tmux new -L dev` and `tmux attach -L dev` which is actually better than my old muscle memory. its a win-win for me

edit: actually jk it doesnt work.

meh who cares i always put my env vars in ~/.profile its weird how OP doesnt mention that at all



The -L option is for tmux so it needs to go before the command as `tmux -L dev new` and `tmux -L dev attach`.


oh. awesome! thank you kindly

edit: damn, now i have to write a custom script for `tmux list-sessions`

    #!/bin/bash
    for L in $(ls /private/tmp/tmux-501); do
        echo $L
        tmux -L $L list-sessions
    done
honestly at this point it isnt even worth it. i dont wanna have an extra script like this. ill just put my env vars in ~/.profile




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: