about summary refs log tree commit diff stats
path: root/.envrc
blob: 525634c026bb531c247af634b53b9b376503fd1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env sh

# Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# This file is part of Quotify - A simple CLI utility to shell quote the text
# inputted into it.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/agpl.txt>.

use flake || use nix
watch_file flake.nix

PATH_add ./target/debug
PATH_add ./target/release
PATH_add ./scripts

if on_git_branch; then
  echo && git status --short --branch &&
  echo && git fetch --verbose
fi