We've got plenty of Linux/UNIX users around here; let's see some of the black magic in your dotfiles.
Parts of my .bashrc:
Code:
Selections from .vimrc:
Code:
I've done neat things with my .tmux.conf lately as well, but it needs a bit of cleanup to behave nicely on machines other than my laptop, so I'll leave it with these two for now.
Parts of my .bashrc:
Code:
# Get quick status info on softraid on shell launch
raidstat() {
S=`grep -A1 "$1" /proc/mdstat | tail -n1 | egrep -o "[0-9]+/[0-9]+"`
echo $1: $S OK
}
raidstat md0
# Prompt something like
# [01:19:29 /foo/bar]
# [tari@Kerwin]$
PS1="[\e[0;36m\t \w\e[m]\n[\u@\h]$ "
# Priority to my own bin directory
PATH="~/bin/:$PATH"
# Misc preferences
alias ls='ls --color=auto'
alias l='ls'
export EDITOR=vim
# Notify of updated packages (pacman -Sy in a cron job)
UPGRADES=$(pacman -Qu | wc -l)
[ $UPGRADES -eq 0 ] && UPGRADES="No"
echo "$UPGRADES package updates available."
Selections from .vimrc:
Code:
" Indent intelligently, replace <Tab> with " ", smarter backspacing
set autoindent smartindent
set tabstop=4 shiftwidth=4 expandtab
set backspace=indent,eol,start
" Note matching braces/whatever when closing
set showmatch
" Enable smart completion on supported langs
" (C-x C-o)
filetype plugin on
set ofu=syntaxcomplete#Complete
" Turn on lexical highlighting
:syntax on
" Show line numbers
set number
" Make comments (much) easier to read
hi Comment ctermfg=6
# Quick tap of jj to exit insert mode
inoremap jj <ESC>
I've done neat things with my .tmux.conf lately as well, but it needs a bit of cleanup to behave nicely on machines other than my laptop, so I'll leave it with these two for now.