-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
46 lines (37 loc) · 1.7 KB
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Put your fun stuff here.
PS1_VCPROMPT='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w $(vcprompt)\$\[\033[00m\] '
PS1_NOVCPROMPT='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
export EDITOR="/usr/bin/vim"
export PS1=$PS1_VCPROMPT
export WINEDEBUG=-all
export XAUTHORITY="/home/leho/.Xauthority"
# SSH keychain
[ ! -n SUDO_USER ] && eval `keychain --eval --quiet identity`
alias dmesg-tail='sudo dmesg | tail -n 50'
alias dmesg-less='sudo dmesg | less'
alias emerge-keywords='sudo ACCEPT_KEYWORDS=~x86 emerge'
alias ls-head='ls -lt | head'
alias ps1-vcprompt='PS1=$PS1_VCPROMPT; export PS1'
alias ps1-novcprompt='PS1=$PS1_NOVCPROMPT; export PS1'
alias xcalib-dark='xcalib -alter -invert'
alias xephyr-awesome='Xephyr -ac -br -noreset -screen 800x600 :1 & sleep 1; DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new'
alias xrdb-defaults='xrdb -load ~/.Xresources'
alias sudo='sudo '
# If you use non-login shells you still need to
[ -f /etc/profile.d/bash-completion.sh ] && source /etc/profile.d/bash-completion.sh
# tig can't parse ANSI
# https://github.com/jonas/tig/issues/8
git() { if [ $1 = "diff" -o $1 = "show" ]; then CMD=$1; shift; command git $CMD --no-color "$@"; else command git "$@"; fi; }