mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
refactor: flake-parts
This commit is contained in:
parent
872c6be493
commit
42a1293f6d
63 changed files with 1118 additions and 875 deletions
32
users/ryan/programs/fish/configs/01_tooling.fish
Normal file
32
users/ryan/programs/fish/configs/01_tooling.fish
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -x SSH_AUTH_SOCK "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
||||
set -x LS_COLORS "$(vivid generate catppuccin-frappe)"
|
||||
|
||||
/opt/homebrew/bin/brew shellenv | source
|
||||
|
||||
fnm env --use-on-cd | source
|
||||
|
||||
fish_add_path -P "$CARGO_HOME/bin"
|
||||
fish_add_path -P "$GOPATH/bin"
|
||||
fish_add_path -P "$HOME/.deno/bin"
|
||||
fish_add_path -P "$HOME/.orbstack/bin"
|
||||
fish_add_path -P "$HOME/.local/bin"
|
||||
|
||||
function expose_app_to_path
|
||||
set -f app $argv[1]
|
||||
|
||||
if test -d "$HOME/Applications/$app.app"
|
||||
fish_add_path -P "$HOME/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
|
||||
|
||||
set fish_greeting
|
||||
18
users/ryan/programs/fish/configs/99_interactive.fish
Normal file
18
users/ryan/programs/fish/configs/99_interactive.fish
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# SPDX-FileCopyrightText: 2025 Ryan Cao <hello@ryanccn.dev>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if status is-interactive
|
||||
nix-your-shell fish | source
|
||||
|
||||
if command -q nrr
|
||||
source "$(COMPLETE=fish nrr | psub)"
|
||||
if command -q nrx
|
||||
source "$(COMPLETE=fish nrx | psub)"
|
||||
end
|
||||
end
|
||||
|
||||
if set -q GHOSTTY_RESOURCES_DIR
|
||||
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue