Skip to content

Instantly share code, notes, and snippets.

View var-bin's full-sized avatar
🤙
Preprocessors do not output bad code. Bad developers do.

Vitalii Rybka var-bin

🤙
Preprocessors do not output bad code. Bad developers do.
View GitHub Profile
@var-bin
var-bin / install screen
Last active March 9, 2017 19:42
Base steps to start using screen. Repository https://github.com/var-bin/terminalForCoder__WSD
sudo apt-get install screen
screen
# Select whether you want to see the copyright
# notice during startup.
# Default is ‘on’, as you probably noticed.
startup_message off
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
sudo apt-get install tmux
tmux
@var-bin
var-bin / SSH_AUTH_SOCK.sh
Last active March 9, 2017 19:42
Making SSH_AUTH_SOCK work between detaches in tmux/screen. Repository https://github.com/var-bin/terminalForCoder__WSD
# Making SSH_AUTH_SOCK work between detaches in tmux/screen
if [[ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$HOME/agent_sock" ]]
then
unlink "$HOME/agent_sock" 2>/dev/null
ln -s "$SSH_AUTH_SOCK" "$HOME/agent_sock"
export SSH_AUTH_SOCK="$HOME/agent_sock"
fi
git clone https://github.com/var-bin/terminalForCoder__WSD.git
Ctrl + a, c - create a new tab
Ctrl + a, A - rename a tab
Ctrl + a, int - navigate through the tabs (int - number of tab 0 - 9)
Ctrl + a, " - interactive navigate through the tabs
Ctrl + a, | - split terminal vertically into regions
Ctrl + a, Tab - switch to the next region
Ctrl + a, c - create a new tab