summaryrefslogtreecommitdiff
path: root/zsh/profile
blob: 66ceab054c3443cb42a5e7a4de238127ad1811c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- mode: shell-script -*-

() {
  local dir
  for dir in ~/.local ${CARGO_HOME} ${GOPATH}; do
    [[ -d ${dir}/bin ]] && path=(${dir}/bin ${path})
  done
}

if [[ -n ${TERM} ]]; then
  # Make C-q and C-s work in zsh.
  #
  # See https://en.wikipedia.org/wiki/Software_flow_control for gory
  # details.
  stty -ixon
fi

source_if_exists zsh/profile