Last active
May 21, 2020 10:43
-
-
Save bokwoon95/a069fc738f67baf8543d0788786d26eb to your computer and use it in GitHub Desktop.
minimal sane settings for .tmux.conf + .bashrc/.inputrc
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
echo "bind R source-file ~/.tmux.conf\\; display \"Reloaded!\" | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind e last-window | |
bind-key @ break-pane \\; last-window | |
bind-key S choose-window 'join-pane -v -s \"%%\"' | |
bind-key V choose-window 'join-pane -h -s \"%%\"' | |
set -sg escape-time 0 | |
setw -g mode-keys vi | |
bind-key M-[ swap-window -t -1 | |
bind-key M-] swap-window -t +1 | |
bind-key c new-window -c '#{pane_current_path}' | |
bind-key '\"' split-window -c '#{pane_current_path}' | |
bind-key % split-window -h -c '#{pane_current_path}'" >> "$HOME/.tmux.conf" | |
echo "HISTCONTROL=ignoredups:erasedups | |
if command -v vim >/dev/null 2>&1; then | |
export EDITOR=vim | |
else | |
export EDITOR=vi | |
fi | |
export LESS='-RiMSFX#4' | |
shopt -s histappend | |
alias ..='cd .. && pwd && ls' | |
alias ...='cd ../.. && pwd && ls' | |
alias ....='cd ../../.. && pwd && ls' | |
alias ls='ls -F ' | |
alias lsa='ls -a -F' | |
alias lsl='ls -alF' | |
alias cp='cp -v' | |
alias mv='mv -v' | |
alias sudo='sudo ' | |
cdd () { if [ \$# -eq 0 ]; then cd \$HOME; else cd \$1; fi; pwd && ls; } | |
mkcd () { mkdir -p \$1 && cd \"\$_\"; }" >> "$HOME/.bashrc" | |
echo "\"\e[A\":history-search-backward | |
\"\e[B\":history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on" >> "$HOME/.inputrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @bokwoon95, you can use
mkdir $1 && cd "$_"
on line 36 to create a folder and then change directory to it.