aboutsummaryrefslogtreecommitdiff
path: root/functions/fishupd.fish
blob: 3e244d12b970ad098a592ae97a4c8d70f67bd693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function fishupd --description "Update fish configuration"

if not command -q 'git'
  echo "Can't find git."
  return 1
end

pushd "$__fish_config_dir"
  if test -z "$FISHCFGREPO"
    git pull
  else
    git pull "$FISHCFGREPO"
  end
popd

end