Skip to content

simple customizations

hepler edited this page Sep 21, 2020 · 2 revisions

very bare bones customizations

tmux

# use C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
 
# better pane splitting
bind \\ split-window -h
bind - split-window -v
unbind '"'
unbind %

# active pane highlighting
set -g window-style bg=colour232,fg=colour244
set -g window-active-style bg=colour234,fg=colour254

bashrc

# Set the colors for the prompt
BLUE="\[\e[0;36m\]"
DEFAULT="\[\e[0m\]"
GOLD="\[\e[0;33m\]"
# other gold: \[\e[33;1m\]
YELLOW="\[\e[1;93m\]"

parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

# bolds username yellow, directory path in normal yellow
export PS1="$YELLOW\u$GOLD[\w]$BLUE\$(parse_git_branch) $DEFAULT\$ "

git branch parsing from here

basic vimrc

here

Clone this wiki locally