From 39a233ae2fa1268275702a89c21487ae21a7d383 Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Sat, 18 Nov 2023 16:25:30 -0600 Subject: nix --- fish/config.fish-nixos | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 fish/config.fish-nixos (limited to 'fish') diff --git a/fish/config.fish-nixos b/fish/config.fish-nixos new file mode 100644 index 0000000..afae918 --- /dev/null +++ b/fish/config.fish-nixos @@ -0,0 +1,41 @@ +alias c="clear" +alias h="history" +alias gpg-agent-restart="gpg-connect-agent reloadagent /bye" +alias glhut="hut --config=$HOME/.grokloc/.config/hut/config" +alias format-patch="git format-patch --subject-prefix="PATCH" -o ~/patches HEAD^" + +if status is-interactive + # locale + set -gx LANG en_US.UTF-8 + set -gx LC_ALL en_US.UTF-8 + + # history + set -gx HISTFILE $HOME/.histfile + set -gx HISTSIZE 10000 + set -gx SAVEHIST 10000 + + # default editor + set -gx EDITOR hx + set -gx ALTERNATE_EDITOR nano + set -gx VISUAL hx + + # gnupg + set -gx GPG_TTY (tty) + gpg-connect-agent updatestartuptty /bye >/dev/null + + clear +end + +# local bin +set -gx PATH $HOME/bin $PATH + +# pager +set -gx PAGER bat + +# grokloc-related +set -gx REPOSITORY_BASE /tmp +set -gx POSTGRES_APP_URL postgres://grokloc:grokloc@localhost:5432/app + +# perl vars +set -gx PERL_UNICODE AS +set -gx PERL_READLINE_NOWARN yes -- cgit v1.2.3