-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrcadditions
39 lines (30 loc) · 1.04 KB
/
.bashrcadditions
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
# TMux additions (add manually to .bashrc if you want them)
# alias tmux="tmux -2"
if [ -n "${SHOW_TMUX_WARNING+x}" ]; then
echo "Warning: This instance is not running in a tmux instance!"
echo "If you wish to do so, run tmux."
fi
# TMux shortcut scripts
alias m="~/scripts/common/tmuxer.sh"
alias j="~/scripts/common/untmux.sh"
# Ignore duplicate commands, invocation of 'ls', and shell built-ins in bash history
export HISTIGNORE="&:ls:[bf]g:exit"
# Add bash completion
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# Add search additions
alias s="~/scripts/common/search.sh"
alias si="~/scripts/common/searchi.sh"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# Add CLICOLOR for Macs
if [ "$(uname)" == "Darwin" ]; then
export CLICOLOR=1
fi