mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
feat: initial commit
This commit is contained in:
commit
dd089fe75c
21 changed files with 983 additions and 0 deletions
6
programs/fish/conf.d/01_basic_env.fish
Normal file
6
programs/fish/conf.d/01_basic_env.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# basic environment variables
|
||||
set -x LANG en_US.UTF-8
|
||||
set -x EDITOR "hx"
|
||||
set -x PAGER "less"
|
||||
set -x LESS "-R"
|
||||
set -x LS_COLORS "$(vivid generate catppuccin-frappe)"
|
||||
51
programs/fish/conf.d/02_tooling.fish
Normal file
51
programs/fish/conf.d/02_tooling.fish
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# 1Password SSH
|
||||
set -x SSH_AUTH_SOCK "$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
||||
|
||||
# Homebrew shell
|
||||
set -x HOMEBREW_NO_ANALYTICS 1
|
||||
set -x HOMEBREW_CASK_OPTS "--require-sha"
|
||||
set -x HOMEBREW_NO_INSECURE_REDIRECT 1
|
||||
set -x HOMEBREW_NO_EMOJI 1
|
||||
/opt/homebrew/bin/brew shellenv | source
|
||||
|
||||
# ccache
|
||||
fish_add_path "$(brew --prefix ccache)/libexec"
|
||||
|
||||
# fnm shell env
|
||||
fnm env --use-on-cd | source
|
||||
|
||||
# pyenv
|
||||
set -x PYENV_ROOT "$HOME/.pyenv"
|
||||
set -x PATH "$PYENV_ROOT/bin:$PATH"
|
||||
pyenv init - | source
|
||||
set -x PIPX_DEFAULT_PYTHON "$HOME/.pyenv/shims/python"
|
||||
|
||||
# cargo
|
||||
fish_add_path "$HOME/.cargo/bin"
|
||||
# deno
|
||||
fish_add_path "$HOME/.deno/bin"
|
||||
|
||||
# pnpm
|
||||
set -x PNPM_HOME "$HOME/Library/pnpm"
|
||||
|
||||
# disable telemetry
|
||||
set -x NEXT_TELEMETRY_DISABLED 1 # Next.js
|
||||
set -x CHECKPOINT_DISABLE 1 # Prisma
|
||||
set -x DISABLE_TELEMETRY YES # diffusers
|
||||
|
||||
# go
|
||||
set -x GOPATH "$HOME/.go"
|
||||
fish_add_path "$GOPATH/bin"
|
||||
|
||||
# direnv
|
||||
set -x DIRENV_LOG_FORMAT ""
|
||||
|
||||
# docker
|
||||
fish_add_path "$HOME/.docker/bin"
|
||||
# local bin
|
||||
fish_add_path "$HOME/.local/bin"
|
||||
# nish
|
||||
fish_add_path "$HOME/dev/nish/bin"
|
||||
|
||||
# fish
|
||||
set fish_greeting
|
||||
13
programs/fish/conf.d/99_interactive.fish
Normal file
13
programs/fish/conf.d/99_interactive.fish
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if status is-interactive
|
||||
# starship
|
||||
starship init fish | source
|
||||
# zoxide
|
||||
zoxide init fish | source
|
||||
# direnv
|
||||
direnv hook fish | source
|
||||
|
||||
set -x FZF_DEFAULT_OPTS " \
|
||||
--color=bg+:#414559,bg:#303446,spinner:#f2d5cf,hl:#e78284 \
|
||||
--color=fg:#c6d0f5,header:#e78284,info:#ca9ee6,pointer:#f2d5cf \
|
||||
--color=marker:#f2d5cf,fg+:#c6d0f5,prompt:#ca9ee6,hl+:#e78284"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue