Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.42 KB

profile.org

File metadata and controls

75 lines (56 loc) · 1.42 KB

Shell profile

Introduction

Should contain functions I often tend to use

OLDPATH=$PATH
PATH=$HOME/bin

for DIR in /opt/local/bin /opt/local/sbin /usr/local/bin /usr/local/sbin $HOME/miniconda3/bin
do
  if [ -d $DIR ]
  then
      PATH=$PATH:$DIR
  fi
done

PATH=$PATH:$OLDPATH

Colorful ls…

if which gls >/dev/null 2>&1
then
    alias ls="gls --color"
    alias ll="gls --color -olhA"
else
    alias ls="ls --color"
    alias ll="ls --color -olhA"
fi

Valgrind options.

if which valgrind >/dev/null 2>&1
then
    alias val="valgrind --leak-check=yes --show-leak-kinds=all --exit-on-first-error=yes --error-exitcode=1"
fi

Emacs / editor

export ALTERNATE_EDITOR=
export EDITOR=emacsclient

alias emacs

alias e='emacsclient -q -c --alternate-editor='
alias es='emacsclient -e "(kill-emacs)"'

python alias

# alias python='/usr/bin/python3'