1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat: add atuin and nom, adjust configs

This commit is contained in:
Ryan Cao 2024-03-11 22:07:00 +08:00
parent 2186255b7e
commit 3ea99dd18a
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
15 changed files with 113 additions and 91 deletions

View file

@ -0,0 +1,45 @@
# ls/exa/eza
set -x LS_COLORS (vivid generate catppuccin-frappe)
# 1Password SSH
set -x SSH_AUTH_SOCK "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
# Homebrew
/opt/homebrew/bin/brew shellenv | source
# Nix
fish_add_path -Pm /etc/profiles/per-user/$USER/bin /run/current-system/sw/bin
# fnm shell env
fnm env --use-on-cd | source
# cargo
fish_add_path -P "$CARGO_HOME/bin"
# go
fish_add_path -P "$GOPATH/bin"
# deno
fish_add_path -P "$HOME/.deno/bin"
# pnpm
set -x PNPM_HOME "$HOME/Library/pnpm"
fish_add_path -P "$PNPM_HOME"
# local bin
fish_add_path -P "$HOME/.local/bin"
function expose_app_to_path
set -f app $argv[1]
if test -d ~/"Applications/$app.app"
fish_add_path -P ~/"Applications/$app.app/Contents/MacOS"
end
if test -d "/Applications/$app.app"
fish_add_path -P "/Applications/$app.app/Contents/MacOS"
end
end
expose_app_to_path Ghostty
expose_app_to_path WezTerm
# suppress greeting
set fish_greeting

View file

@ -0,0 +1,15 @@
if status is-interactive
nix-your-shell fish | source
set -l iterm2_shell_integration "$HOME/.iterm2_shell_integration.fish"
string match -q "$TERM_PROGRAM" "iTerm.app"
and test -f "$iterm2_shell_integration"
and source "$iterm2_shell_integration"
set -l ghostty_shell_integration "/Applications/Ghostty.app/Contents/Resources/ghostty/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
string match -q "$TERM_PROGRAM" ghostty
and test -f "$ghostty_shell_integration"
and source "$ghostty_shell_integration"
end