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.
 

52 lines
936 B

#!/bin/bash
export PREFIX=/Users/heck/local/
if [ $(uname) == "Linux" ]; then {
export LD_LIBRARY_PATH=$PREFIX/lib/:$LD_LIBRARY_PATH
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 {
export DYLD_LIBRARY_PATH=$PREFIX/lib/:$DYLD_LIBRARY_PATH
alias l='ls -GlT'
alias ll='l -a'
alias lt='l -at'
alias ltr='l -art'
} fi
## PATH
#macports
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
#cmake
export PATH="/Applications/CMake.app/Contents/bin":$PATH
#prefix
export PATH=$PREFIX/bin:$PATH
#rust
export PATH="$HOME/.cargo/bin:$PATH"
export LANG=en_US.UTF-8
export TERM=xterm
export EDITOR=vim
export LESS='-RS -i -X'
export HISTFILESIZE=
export HISTSIZE=100000
alias sp='source $HOME/.bash_profile'
alias m='make'
alias mc='m clean'
alias mi='m install'
alias md='m develop'
# grep
alias grep='grep --color=auto'