-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
50 lines (38 loc) · 1.05 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
47
48
49
50
#!/bin/sh
# Are we an interactive shell?
if [ "$PS1" ]; then
case $TERM in
xterm*)
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
screen)
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
esac
# Turn on checkwinsize
shopt -s checkwinsize
fi
if [ -f ~/.profile ]; then
. "$HOME/.profile"
fi
set bell-style visible
export HISTCONTROL=ignoredups
# Bunch of handy aliases
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias ls='ls --color=auto --ignore-backups'
alias empdirs='find . -type d -empty -exec rmdir {} \;'
alias ducks='du -cks * | sort -rn | head'
alias daveops='cd $HOME/src/daveops.net/'
alias itoonz='open -a iTunes.app'
alias usystemctl='systemctl --user'
alias be='bundle exec'
alias fpp='fpp -c vim'
alias sqlite='sqlite3'
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [ -f ~/.bashrc_local ]; then
. "$HOME/.bashrc_local"
fi