diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-22 14:53:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-22 14:53:00 +0000 |
commit | 1c82cf76608d7e87d734414ddba6e76622b9646c (patch) | |
tree | 14b5aa874a889199f271e3903bd0ef6422482d2e | |
parent | e43fc6f08a2fcd54df6bcc0218ad77db8dea5603 (diff) | |
download | rtmux-1c82cf76608d7e87d734414ddba6e76622b9646c.tar.gz rtmux-1c82cf76608d7e87d734414ddba6e76622b9646c.tar.bz2 rtmux-1c82cf76608d7e87d734414ddba6e76622b9646c.zip |
Remove a couple of FAQ bits that are out of date and not frequent.
-rw-r--r-- | FAQ | 45 |
1 files changed, 0 insertions, 45 deletions
@@ -326,51 +326,6 @@ lock(1) or vlock(1)) by using the following: bind x set lock-command '/usr/bin/vlock' \; lock-client \; set lock-command 'tput civis && read -s -n1' -* How can I open a new window in the same directory as the current window? - -One option is to just run "TMUX= tmux" in the window. However, this only works if no -command is running, so that you can input the command. - -A workaround is to let tmux know about the current path through an environment -variable. To do so, use the following command: - - [ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#I") $PWD - -Which sets TMUXPWD_i (where i is the number of the current window) to the path -of the current directory. This command can be added to PS1, for example: - - PS1='$([ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#I") $PWD)\h$ ' - -When a new window is created, the shell should be asked to change -directory. You can define a new binding (for example, if using GNU bash): - - bind-key C-c run-shell 'tmux neww "cd $(tmux display -p "\$TMUXPWD_#I"); exec bash"' - -This solution will work even if a command is currently running in the terminal, -but it will not work from a window that has just been swapped with another -because TMUXPWD_i will not be updated after a swap. However, once a new prompt -is displayed, TMUXPWD_i is updated properly. - -* tmux doesn't start with "daemon failed" - -tmux shows something similar to this when started: - - fatal: server_start: daemon failed: No such file or directory - fatal: main_dispatch: imsg_read failed - -A possible reason is that /dev/null is not a character device or is otherwise -inaccessible. - -Check with: - - file /dev/null - ls -l /dev/null - -If it is not a character device or has incorrect permissions, it can typically -be recreated with: - - cd /dev && rm null && ./MAKEDEV null - * vim displays reverse video instead of italics, while less displays italics (or just regular text) instead of reverse. What's wrong? |