As configured in my dotfiles.
start new:
tmux
start new with session name:
set -g default-terminal "screen-256color" | |
# set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# set vi keybindings | |
set-window-option -g mode-keys vi | |
# remap PREFIX to C-a |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
#ONE PS1 TO RULE THEM ALL | |
#add this to ~/.bash_profile or system equivalent | |
export PS1="\[\033[0;32m\]\u@\`if [ \$? = 0 ]; then echo \[\e[32m\] ┬─┬ノ\(º _ ºノ\); else echo \[\e[31m\] \(ノಥ 益ಥ)ノ ┻━┻ ; fi\`\[\e[0m\]:\w\$ " |
As configured in my dotfiles.
start new:
tmux
start new with session name:
im assuming that the tmux prefix is Control+b and that you have emacs style key bindings on | |
1) enter copy mode using Control+b [ | |
2) navigate to beginning of text, you want to select and hit Control+Space | |
3) move around using arrow keys to select region | |
4) when you reach end of region simply hit Alt+w to copy the region | |
5) now Control+b ] will paste the selection | |
you can navigate the text using the emacs style navigation key | |
Control+p, Control+n, Control+f, Control+b etc. |
The default command key bindings are: | |
C-b Send the prefix key (C-b) through to the application. | |
C-o Rotate the panes in the current window forwards. | |
C-z Suspend the tmux client. | |
! Break the current pane out of the window. | |
" Split the current pane into two, top and bottom. | |
# List all paste buffers. | |
$ Rename the current session. | |
% Split the current pane into two, left and right. |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.