start new:
tmux
start new with session name:
tmux new -s myname
# npm using https for git | |
git config --global url."https://github.com/".insteadOf git@github.com: | |
git config --global url."https://".insteadOf git:// | |
# npm using git for https | |
git config --global url."git@github.com:".insteadOf https://github.com/ | |
git config --global url."git://".insteadOf https:// |
#include <stdio.h> | |
#include <string.h> | |
/* UTF-8 character might be encoded in up to 4 bytes according to RFC | |
* 3629 so to truncate it correctly care needs to be taken for such | |
* characters. ASCII character are in single byte using 7 bits (max is | |
* 127) so any multi-byte character has first byte higher then | |
* 127. Because first byte in multi-byte sequence is encoding how many | |
* bytes this sequence has we can easily check for it looking for the | |
* first byte in sequence and see how many bytes more to truncate. |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |