-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
16 lines (16 loc) · 745 Bytes
/
Copy pathbash_profile
File metadata and controls
16 lines (16 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PS1="\[\033[38;5;223m\]${debian_chroot:+($debian_chroot)}\u@\h$([ -n "$STY" ] && echo "[screen]"):\w\$\[\033[m\] "
# Fix screen vim color issue
export TERM=xterm-256color
# Keeps programs running without losing Kerberos
inception () {
screen -S ${1:-inception} ssh $USER@$HOSTNAME
}
# Some shortcuts for common git operations
gitlog () { git log --graph --all --decorate --oneline --relative-date --format=format:"%C(auto)%h %C(blue)%an%C(reset)%C(auto)%d %s %C(yellow)%ad" "$@" ; }
gitstatus () { git status "$@" ; }
gitdiff () { git diff "$@" ; }
gitdiffw () { git diff --word-diff=color "$@" ; }
gitdiffs () { git diff --staged "$@" ; }
gitdiffws () { git diff --word-diff=color --staged "$@" ; }
# Show running screens
screen -ls