-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
49 lines (37 loc) · 913 Bytes
/
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
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) for examples.
. ~/.profile
# if not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# run /etc/bashrc if it exists
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PLATFORM=`uname`
HISTCONTROL=ignoredups:ignorespace
HISTSIZE=4096
shopt -s histappend
shopt -s checkwinsize
if [[ $PLATFORM != "Darwin" ]]; then
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi
alias df='df -kTh'
alias du='du -kh'
alias ll='ls -al'
export TERM=xterm-256color
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Repeat command N times.
function repeat()
{
local i max
max=$1; shift;
for ((i=1; i <= max ; i++)); do
eval "$@";
done
}