summaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2024-04-07 12:27:01 -0500
committerBrad Clawsie <brad@b7j0c.org>2024-04-07 12:27:01 -0500
commit2e39306e7f203f65f416c892be0243a423b1de88 (patch)
tree0a1770b7857ceff20ec195e0ea32bf1b4068655d /fish
parent485cc4b4cc6fa05101e225be69c99e0bd67e9982 (diff)
nspawn
Diffstat (limited to 'fish')
-rw-r--r--fish/nspawn.config.fish46
1 files changed, 46 insertions, 0 deletions
diff --git a/fish/nspawn.config.fish b/fish/nspawn.config.fish
new file mode 100644
index 0000000..3beecd7
--- /dev/null
+++ b/fish/nspawn.config.fish
@@ -0,0 +1,46 @@
+alias c="clear"
+alias h="history"
+alias gpg-agent-restart="gpg-connect-agent reloadagent /bye"
+
+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 emacsclient
+ set -gx ALTERNATE_EDITOR nano
+ set -gx VISUAL emacsclient
+
+ # gnupg
+ set -gx GPG_TTY (tty)
+ gpg-connect-agent updatestartuptty /bye >/dev/null
+
+ # ssh-agent
+ set -gx SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket"
+
+ clear
+end
+
+# 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
+
+fish_add_path -p $HOME/bin
+fish_add_path -p $HOME/go/bin
+
+function fish_prompt
+ echo '> '
+end