Browse Source

base add PREFIX and LD_LIBRARY_PATH

master
heck 9 months ago
parent
commit
ba7cc857fd
1 changed files with 24 additions and 20 deletions
  1. +24
    -20
      bash_profile.d/00_base.sh

+ 24
- 20
bash_profile.d/00_base.sh View File

@ -1,27 +1,11 @@
#!/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
export PREFIX=/Users/heck/local/
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 {
export PREFIX=/home/heck/local
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib/
alias l='ls -l --color=always --time-style=+%F%t%T'
alias ll='l -a'
alias lt='l -at'
@ -29,12 +13,32 @@ if [ $(uname) == "Linux" ]; then {
} fi
if [ $(uname) == "Darwin" ]; then {
export PREFIX=/Users/heck/local-default
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PREFIX/lib/
alias l='ls -GlT'
alias ll='l -a'
alias lt='l -at'
alias ltr='l -art'
} fi
export PATH=$PREFIX/bin:/opt/local/bin:/opt/local/sbin:$PATH
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'


Loading…
Cancel
Save