about summary refs log tree commit diff stats
path: root/.envrc
blob: 070726d5a2b3f7fc45e2ebe0788fcbd25f722ca6 (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