summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh/rc
blob: 2875e9f5676435c2afb12ec1f136acd64a62bba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- mode: shell-script -*-

autoload -Uz vault

alias df='df -Ph'
alias ls='ls -G'
alias lsh='du -a | sort -h'
alias pip=pip3
alias python=python3

() {
  local emacs=~/Applications/Emacs.app/Contents/MacOS/Emacs
  if ! which emacs >/dev/null && [[ -x ${emacs} ]]; then
    alias emacs=${emacs}
  fi
}

if (( ${path[(I)/usr/local/opt/coreutils/libexec/gnubin]} )); then
  alias ls='ls --color --group-directories-first'
  alias lsh='ls -Shrs'
fi