Heck's structured cross-platform bash setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

42 lines
681 B

#!/bin/bash
#export PATH=$PATH:/opt/local/bin:/opt/local/sbin
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="$HOME/.cargo/bin:$PATH"
export LANG=en_US.UTF-8
TERM=xterm
EDITOR=vim
LESS='-RS -i -X'
HISTFILESIZE=
HISTSIZE=100000
alias sp='source $HOME/.bash_profile'
alias m='make'
alias mc='m clean'
alias mi='m install'
alias md='m develop'
# ls
if [ $(uname) == "Linux" ]; then {
alias l='ls -l --color=always --time-style=+%F%t%T'
alias ll='l -a'
alias lt='l -at'
alias ltr='l -art'
} fi
if [ $(uname) == "Darwin" ]; then {
alias l='ls -GlT'
alias ll='l -a'
alias lt='l -at'
alias ltr='l -art'
} fi
# grep
alias grep='grep --color=auto'