This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Attach or create tmux session named the same as current directory. | |
path_name="$(basename "$PWD" | tr . -)" | |
session_name=${1-$path_name} | |
not_in_tmux() { | |
[ -z "$TMUX" ] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix C-s | |
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
# set default terminal model to 256 color mode | |
set -g default-terminal "screen-256color" | |
bind-key -n C-h select-pane -L |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client_up(){ | |
gost -L socks5://:1080 -F 'https://USER:PASS@DOMAIN:PORT' | |
} | |
SOCKS="socks5://127.0.0.1:1080" | |
alias proxy_on="export http_proxy=${SOCKS} https_proxy=${SOCKS} all_proxy=${SOCKS}" | |
alias proxy_off='unset all_proxy http_proxy https_proxy' |