Browse Source

add netbsd PKG_PATH

master
Markus Bergholz 3 years ago
parent
commit
c8aec95cde
1 changed files with 12 additions and 8 deletions
  1. +12
    -8
      bash/mb.bashrc

+ 12
- 8
bash/mb.bashrc View File

@@ -2,22 +2,19 @@
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '


## git
######
source ~/.bash-git-prompt/gitprompt.sh
alias gs="git status"
alias gl="git log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"

## ssh keygen
#############
alias newpubkey='ssh-keygen -f ~/.ssh/id_rsa -y'
alias fingerprint='ssh-keygen -lf ~/.ssh/id_rsa.pub'

## lazy
#######
alias mp3="mplayer *.mp3"
alias n="nano"
alias nani="nano"
@@ -27,6 +24,8 @@ function search_in_bash_history () {
}
alias h="search_in_bash_history"

## lua
######
function lua_environment () {
if (("$#" == 1)); then
if [ $1 == "51" ]; then
@@ -38,16 +37,17 @@ function lua_environment () {
fi
fi
}

alias uselua="lua_environment"

## matlab/octave
################
alias matlab="/home/markus/MATLAB/bin/matlab"
alias m="/home/markus/MATLAB/bin/matlab -nodesktop -nosplash"
alias o="octave-cli"


## local compiles
#################
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.mlocal/lib"

# set PATH so it includes user's private bin if it exists
@@ -59,3 +59,7 @@ if [ -d "$HOME/.mlocal/lib/pkgconfig" ]; then
export PKG_CONFIG_PATH="$HOME/.mlocal/lib/pkgconfig"
fi

if [ $(uname) = "NetBSD" ]; then
PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/7.0/All/"
export PKG_PATH
fi

Loading…
Cancel
Save