Skip to content

Instantly share code, notes, and snippets.

View ignatiusreza's full-sized avatar

Ignatius Reza ignatiusreza

View GitHub Profile
# customize PS1 with git info and short directory names
find_pwd_short() {
pwd_short=$(pwd | sed 's@'"$HOME"'@~@' | sed -r 's|/(.)[^/]*|/\1|g')
if [ $pwd_short != '~' ]; then
pwd_short=${pwd_short%??}
pwd_short="$pwd_short/${PWD##*/}"
fi
}
export PROMPT_COMMAND="find_pwd_short; $PROMPT_COMMAND"
# Bring out all the color!
set -g default-terminal "xterm-256color"
# Start pane & window numbering at 1
set -g base-index 1
set -g pane-base-index 1
# Make the main pane in main-vertical layout wider
setw -g main-pane-width 120
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
filetype off " required by Vundle
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
" call vundle#begin('~/some/path/here')
@ignatiusreza
ignatiusreza / bin
Last active February 28, 2023 12:48
custom git alias and script
Various custom bash & git "function"