forked from romkatv/dotfiles-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
42 lines (34 loc) · 1.36 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
[[ $- == *i* ]] || return # non-interactive shell
HISTCONTROL=ignoreboth
HISTSIZE=1000000000
HISTFILESIZE=1000000000
HISTFILE="$HOME"/.bash_history
shopt -s histappend
shopt -s checkwinsize
shopt -s globstar
if command -v lesspipe &>/dev/null; then
export LESSOPEN="| /usr/bin/env lesspipe %s 2>&-"
fi
alias diff='diff --color=auto'
alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
alias clang-format='clang-format -style=file'
alias ls='ls --color=auto --group-directories-first'
alias tree='tree -aC -I .git --dirsfirst'
alias gedit='gedit &>/dev/null'
alias x='xclip -selection clipboard -in' # cut to clipboard
alias v='xclip -selection clipboard -out' # paste from clipboard
alias c='xclip -selection clipboard -in -filter' # copy clipboard
alias dotfiles-public='git --git-dir="$HOME"/.dotfiles-public/.git --work-tree="$HOME"'
alias dotfiles-private='git --git-dir="$HOME"/.dotfiles-private/.git --work-tree="$HOME"'
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
source /usr/share/bash-completion/bash_completion
elif [[ -f /etc/bash_completion ]]; then
source /etc/bash_completion
fi
if [[ -d ~/gitstatus ]]; then
GITSTATUS_ENABLE_LOGGING=1
[[ -e ~/gitstatus/gitstatusd ]] && GITSTATUS_DAEMON=~/gitstatus/gitstatusd
source ~/gitstatus/gitstatus.prompt.sh
else
source ~/dotfiles/gitstatus/gitstatus.prompt.sh
fi