summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh/rc
blob: 145b177e0e1ba985ce2b6806163766efd5ebf4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- 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
alias rsync='rsync --exclude=.DS_Store'

() {
  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