diff options
Diffstat (limited to 'functions')
| -rw-r--r-- | functions/fishupd.fish | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/functions/fishupd.fish b/functions/fishupd.fish new file mode 100644 index 0000000..3e244d1 --- /dev/null +++ b/functions/fishupd.fish @@ -0,0 +1,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 |
