Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Last active October 23, 2025 22:30
Show Gist options
  • Select an option

  • Save pythoninthegrass/883d0554915579788e4f81c2ff378c34 to your computer and use it in GitHub Desktop.

Select an option

Save pythoninthegrass/883d0554915579788e4f81c2ff378c34 to your computer and use it in GitHub Desktop.

Revisions

  1. pythoninthegrass revised this gist Oct 23, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -95,6 +95,7 @@ fi

    # claude code (mcp)
    if [[ -f "$HOME/git/claude_config/.mcp.json.tpl" ]]; then
    export $(grep -v '^#' "$HOME/git/claude_config/.env" | xargs)
    envsubst < "$HOME/git/claude_config/.mcp.json.tpl" \
    > "$HOME/git/claude_config/.mcp.json"
    alias claude='claude --mcp-config "$HOME/.claude/.mcp.json" "$@"'
  2. pythoninthegrass revised this gist Oct 14, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -98,6 +98,7 @@ if [[ -f "$HOME/git/claude_config/.mcp.json.tpl" ]]; then
    envsubst < "$HOME/git/claude_config/.mcp.json.tpl" \
    > "$HOME/git/claude_config/.mcp.json"
    alias claude='claude --mcp-config "$HOME/.claude/.mcp.json" "$@"'
    alias claude-yolo='claude --dangerously-skip-permissions'
    fi

    # opencode
  3. pythoninthegrass revised this gist Oct 7, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -97,7 +97,7 @@ fi
    if [[ -f "$HOME/git/claude_config/.mcp.json.tpl" ]]; then
    envsubst < "$HOME/git/claude_config/.mcp.json.tpl" \
    > "$HOME/git/claude_config/.mcp.json"
    alias claude='claude --mcp-config "$HOME/.claude/.mcp.json"'
    alias claude='claude --mcp-config "$HOME/.claude/.mcp.json" "$@"'
    fi

    # opencode
  4. pythoninthegrass revised this gist Oct 7, 2025. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -85,14 +85,21 @@ check_bin orb && source ~/.orbstack/shell/init.bash 2>/dev/null || :
    # localstack
    check_bin localstack && export LOCALSTACK_ACTIVATE_PRO=1

    # claude
    # claude desktop
    # * NOTE: requires `envsubst` (from `gettext` package)
    if [[ -f "$HOME/git/claude_config/.env" ]]; then
    export $(grep -v '^#' "$HOME/git/claude_config/.env" | xargs)
    envsubst < "$HOME/git/claude_config/claude_desktop_config.json.tpl" \
    > "$HOME/git/claude_config/claude_desktop_config.json"
    fi

    # claude code (mcp)
    if [[ -f "$HOME/git/claude_config/.mcp.json.tpl" ]]; then
    envsubst < "$HOME/git/claude_config/.mcp.json.tpl" \
    > "$HOME/git/claude_config/.mcp.json"
    alias claude='claude --mcp-config "$HOME/.claude/.mcp.json"'
    fi

    # opencode
    if [[ -f "$HOME/git/opencode_config/.env" ]]; then
    export $(grep -v '^#' "$HOME/git/opencode_config/.env" | xargs)
  5. pythoninthegrass revised this gist Oct 2, 2025. 1 changed file with 5 additions and 9 deletions.
    14 changes: 5 additions & 9 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -174,10 +174,11 @@ check_bin starship && eval "$(starship init bash)"

    # k8s
    export KUBECONFIG="$HOME/.kube/config"
    if check_bin kubectl; then
    source <(kubectl completion bash)
    complete -o default -F __start_kubectl k
    fi
    # TODO: fix _get_comp_words_by_ref
    # if check_bin kubectl; then
    # source <(kubectl completion bash)
    # complete -o default -F __start_kubectl k
    # fi

    # man pager
    export MANPAGER="sh -c 'col -bx | bat -l man -p'"
    @@ -198,8 +199,3 @@ fi

    # .bashrc profiling end
    # set +x

    # Added by LM Studio CLI (lms)
    export PATH="$PATH:/Users/lance/.lmstudio/bin"
    # End of LM Studio CLI section

  6. pythoninthegrass revised this gist Oct 2, 2025. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -173,7 +173,7 @@ check_bin colorscript && colorscript -e random # crunch, random
    check_bin starship && eval "$(starship init bash)"

    # k8s
    export KUBECONFIG="$HOME/.kube/nwl.yml:$HOME/.kube/config:$HOME/.kube/k3s.yml:$HOME/.kube/minikube.yml"
    export KUBECONFIG="$HOME/.kube/config"
    if check_bin kubectl; then
    source <(kubectl completion bash)
    complete -o default -F __start_kubectl k
    @@ -198,3 +198,8 @@ fi

    # .bashrc profiling end
    # set +x

    # Added by LM Studio CLI (lms)
    export PATH="$PATH:/Users/lance/.lmstudio/bin"
    # End of LM Studio CLI section

  7. pythoninthegrass revised this gist Sep 15, 2025. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -93,6 +93,14 @@ if [[ -f "$HOME/git/claude_config/.env" ]]; then
    > "$HOME/git/claude_config/claude_desktop_config.json"
    fi

    # opencode
    if [[ -f "$HOME/git/opencode_config/.env" ]]; then
    export $(grep -v '^#' "$HOME/git/opencode_config/.env" | xargs)
    envsubst '$CONTEXT7_API_KEY $HOME $UV_PROJECT_ENVIRONMENT' \
    < "$HOME/git/opencode_config/opencode.jsonc.tpl" \
    > "$HOME/git/opencode_config/opencode.jsonc"
    fi

    # jujutsu
    check_bin jujutsu && source <(jj util completion bash)

  8. pythoninthegrass revised this gist Sep 14, 2025. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -198,9 +198,3 @@ fi

    # .bashrc profiling end
    # set +x

    # Added by LM Studio CLI (lms)
    export PATH="$PATH:/Users/lance/.lmstudio/bin"
    # End of LM Studio CLI section

    alias claude="/Users/lance/.claude/local/claude"
  9. pythoninthegrass revised this gist Sep 5, 2025. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions startup.py
    Original file line number Diff line number Diff line change
    @@ -13,9 +13,10 @@
    # https://ipython.readthedocs.io/en/stable/interactive/reference.html#ipython-as-your-default-python-environment
    # https://github.com/Textualize/rich#rich-repl

    import os, IPython
    from rich.jupyter import print
    import os
    import IPython
    from rich.jupyter import print # noqa

    os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
    os.environ['PYTHONSTARTUP'] = '' # Prevent running this again
    IPython.start_ipython()
    raise SystemExit
  10. pythoninthegrass revised this gist Sep 5, 2025. 4 changed files with 28 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -141,6 +141,12 @@ lg() {
    fi
    }

    # jbang w/suppressed stderr
    # * e.g., `WARNING: Using incubator modules: jdk.incubator.vector`
    jbang() {
    command jbang "$@" 2>/dev/null
    }

    # recursive git status
    git_status() {
    export GREEN='\033[0;32m'
    14 changes: 14 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -1 +1,15 @@
    [[ -s ~/.bashrc ]] && source ~/.bashrc

    # Added by LM Studio CLI (lms)
    export PATH="$PATH:/Users/lance/.lmstudio/bin"
    # End of LM Studio CLI section


    # Setting PATH for Python 3.14
    # The original version is saved in .bash_profile.pysave
    PATH="/Library/Frameworks/Python.framework/Versions/3.14/bin:${PATH}"
    export PATH

    # Add JBang to environment
    alias j!=jbang
    export PATH="$HOME/.jbang/bin:$PATH"
    6 changes: 6 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -198,3 +198,9 @@ fi

    # .bashrc profiling end
    # set +x

    # Added by LM Studio CLI (lms)
    export PATH="$PATH:/Users/lance/.lmstudio/bin"
    # End of LM Studio CLI section

    alias claude="/Users/lance/.claude/local/claude"
    2 changes: 2 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,8 @@ __pycache__/
    *.pem
    **/CLAUDE.local.md
    **/settings.local.json
    claude_desktop_config.json
    !claude_desktop_config.json.tpl
    certs/
    client_secret.json
    depot.json
  11. pythoninthegrass revised this gist Aug 10, 2025. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    # PATH
    # export CODE="${VSCODE_GIT_ASKPASS_NODE%/*}/bin/remote-cli"
    # export PATH="$CODE:$HOME/.asdf/shims:$PATH" # TODO: switch to mise

    # check if binary exists
    check_bin() { type -P "$1" >/dev/null 2>&1; }
  12. pythoninthegrass revised this gist Aug 10, 2025. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .default-python-packages
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    ipython
    rich
  13. pythoninthegrass revised this gist Aug 10, 2025. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@

    # PATH
    # export CODE="${VSCODE_GIT_ASKPASS_NODE%/*}/bin/remote-cli"
    # export PATH="$CODE:$HOME/.asdf/shims:$PATH" # TODO: switch to mise

    # check if binary exists
    check_bin() { type -P "$1" >/dev/null 2>&1; }
  14. pythoninthegrass revised this gist Aug 6, 2025. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -86,6 +86,14 @@ check_bin orb && source ~/.orbstack/shell/init.bash 2>/dev/null || :
    # localstack
    check_bin localstack && export LOCALSTACK_ACTIVATE_PRO=1

    # claude
    # * NOTE: requires `envsubst` (from `gettext` package)
    if [[ -f "$HOME/git/claude_config/.env" ]]; then
    export $(grep -v '^#' "$HOME/git/claude_config/.env" | xargs)
    envsubst < "$HOME/git/claude_config/claude_desktop_config.json.tpl" \
    > "$HOME/git/claude_config/claude_desktop_config.json"
    fi

    # jujutsu
    check_bin jujutsu && source <(jj util completion bash)

  15. pythoninthegrass revised this gist Jul 24, 2025. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,12 @@ if [[ $(uname) = "Darwin" ]]; then
    export CFLAGS="-I${BREW_PREFIX}/include"
    export LDFLAGS="-L${BREW_PREFIX}/lib"

    # start ssh-agent
    eval $(ssh-agent > /dev/null 2>&1)

    # add all keys to ssh-agent
    ssh-add 2>/dev/null

    # aliases
    alias ip="ipconfig getifaddr $(networksetup -listallhardwareports | awk '/Hardware Port: Wi-Fi/{getline; print $2}')"
    alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
  16. pythoninthegrass revised this gist Jul 23, 2025. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion startup.py
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,14 @@
    #!/usr/bin/env python3
    #!/usr/bin/env -S uv run --script

    # /// script
    # requires-python = ">=3.11,<=3.13"
    # dependencies = [
    # "ipython>=9.4.0",
    # "rich>=14.0.0",
    # ]
    # ///

    # pyright: reportMissingImports=false

    # https://ipython.readthedocs.io/en/stable/interactive/reference.html#ipython-as-your-default-python-environment
    # https://github.com/Textualize/rich#rich-repl
  17. pythoninthegrass revised this gist Jul 22, 2025. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -83,9 +83,12 @@ fi
    # orbstack
    check_bin orb && source ~/.orbstack/shell/init.bash 2>/dev/null || :

    # localstask
    # localstack
    check_bin localstack && export LOCALSTACK_ACTIVATE_PRO=1

    # jujutsu
    check_bin jujutsu && source <(jj util completion bash)

    # process-compose
    # https://f1bonacc1.github.io/process-compose/cli/process-compose_completion_bash/
    check_bin process-compose && source <(process-compose completion bash)
  18. pythoninthegrass revised this gist Jul 22, 2025. 1 changed file with 18 additions and 2 deletions.
    20 changes: 18 additions & 2 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,19 @@
    # ETC
    __pycache__/
    .env*
    .infracost
    .nvimlog
    .secrets
    .unikraft
    .venv/
    *.pem
    **/CLAUDE.local.md
    **/settings.local.json
    certs/
    client_secret.json
    .env
    depot.json
    llms*.txt
    scratch.*
    *.pem

    # MACOS
    # General
    @@ -31,3 +43,7 @@ Icon
    Network Trash Folder
    Temporary Items
    .apdisk

    # INCLUDE
    !**/.gitkeep
    !**/*.example
  19. pythoninthegrass revised this gist Jul 21, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -167,7 +167,7 @@ check_bin colorscript && colorscript -e random # crunch, random
    check_bin starship && eval "$(starship init bash)"

    # k8s
    export KUBECONFIG="$HOME/.kube/config:$HOME/.kube/k3s.yml:$HOME/.kube/minikube.yml"
    export KUBECONFIG="$HOME/.kube/nwl.yml:$HOME/.kube/config:$HOME/.kube/k3s.yml:$HOME/.kube/minikube.yml"
    if check_bin kubectl; then
    source <(kubectl completion bash)
    complete -o default -F __start_kubectl k
  20. pythoninthegrass revised this gist Jun 24, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -87,6 +87,9 @@ export PATH=$(echo -n $PATH | awk -v RS=: -v ORS=: '!x[$0]++' | sed "s/\(.*\).\{
    # Source shell aliases
    [[ -f "$HOME/.bash_aliases" ]] && . "$HOME/.bash_aliases"

    # claude code
    export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

    # golang
    export GOPATH="${MISE_DATA_DIR}/shims"
    export GOCACHE="$HOME/go/cache"
  21. pythoninthegrass revised this gist Jun 13, 2025. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -42,9 +42,6 @@ alias tfpn='terraform plan -refresh=false'
    # lunarvim
    check_bin lvim && alias vim='lvim'

    # claude code
    alias claude="$HOME/.claude/local/claude"

    # atuin
    check_bin atuin && eval "$(atuin init bash --disable-up-arrow)"

  22. pythoninthegrass revised this gist Jun 13, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -125,6 +125,7 @@ pip_uninstall() { python -m pip uninstall -y "$@"; }
    check_bin register-python-argcomplete && eval "$(register-python-argcomplete pipx)"
    # export PIPX_DEFAULT_PYTHON="$ASDF_DATA_DIR/shims/python" # TODO: switch to mise
    export UV_HTTP_TIMEOUT=60
    export UV_PRERELEASE="allow"

    # TODO: adds literal seconds to prompt startup time
    # magic (mojo/modular)
  23. pythoninthegrass revised this gist Jun 6, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -74,7 +74,7 @@ export MODULAR_BIN="$MODULAR_HOME/bin"
    export N_PREFIX="$HOME/.n"
    export NPM_GLOBAL="$HOME/.npm-global/bin"
    export RUST_WITHOUT="rust-docs"
    export PATH="$MISE_DATA_DIR/shims:$HOME/.cargo/bin:$MODULAR_BIN:$HOME/.local/bin:$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$HOME/.rd/bin:$KREW_ROOT/bin:$GEM_HOME/bin:$N_PREFIX/bin:$NPM_GLOBAL:/usr/local/opt/gnu-getopt/bin:/usr/local/bin:/usr/local:/usr/local/sbin:$HOME/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
    export PATH="$MISE_DATA_DIR/shims:$HOME/.cargo/bin:$MODULAR_BIN:$HOME/.local/bin:$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$HOME/.pub-cache/bin:$HOME/.rd/bin:$KREW_ROOT/bin:$GEM_HOME/bin:$N_PREFIX/bin:$NPM_GLOBAL:/usr/local/opt/gnu-getopt/bin:/usr/local/bin:/usr/local:/usr/local/sbin:$HOME/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
    export PATH=$(echo -n $PATH | awk -v RS=: -v ORS=: '!x[$0]++' | sed "s/\(.*\).\{1\}/\1/")

    # shell completions
  24. pythoninthegrass revised this gist Jun 4, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -71,7 +71,7 @@ fi
    check_bin skate && export MISE_GITHUB_TOKEN="$(skate get mise_gh_token 2>/dev/null || echo '')"

    # aqua
    check_bin aqua && export AQUA_GLOBAL_CONFIG=${AQUA_GLOBAL_CONFIG:-}:${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml
    check_bin aqua && export AQUA_GLOBAL_CONFIG="${AQUA_GLOBAL_CONFIG:-}:${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml"

    # fzf
    # https://github.com/junegunn/fzf#using-git
  25. pythoninthegrass revised this gist Jun 4, 2025. 2 changed files with 16 additions and 12 deletions.
    17 changes: 12 additions & 5 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    # PATH
    # export CODE="${VSCODE_GIT_ASKPASS_NODE%/*}/bin/remote-cli"
    # export PATH="$CODE:$HOME/.asdf/shims:$PATH"
    # export PATH="$CODE:$HOME/.asdf/shims:$PATH" # TODO: switch to mise

    # check if binary exists
    check_bin() { type -P "$1" >/dev/null 2>&1; }
    @@ -61,10 +61,17 @@ alias wm='wmill'
    # https://github.com/jesseduffield/lazydocker#installation
    alias lzd="lazydocker"

    # asdf
    # https://asdf-vm.com/guide/getting-started.html
    export ASDF_DIR="$HOME/.asdf"
    [[ -f "$ASDF_DIR/asdf.sh" ]] && . "$ASDF_DIR/asdf.sh"
    # mise
    # https://mise.jdx.dev/getting-started.html#activate-mise
    # https://mise.jdx.dev/getting-started.html#github-api-rate-limiting
    if [[ -f "${HOME}/.local/bin/mise" ]];then
    eval "$(${HOME}/.local/bin/mise activate bash)"
    export MISE_PIN=1 # use asdf versioning
    fi
    check_bin skate && export MISE_GITHUB_TOKEN="$(skate get mise_gh_token 2>/dev/null || echo '')"

    # aqua
    check_bin aqua && export AQUA_GLOBAL_CONFIG=${AQUA_GLOBAL_CONFIG:-}:${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml

    # fzf
    # https://github.com/junegunn/fzf#using-git
    11 changes: 4 additions & 7 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -66,21 +66,18 @@ fi

    # PATH
    ## BAK (macOS): export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" || source /etc/profile
    export ASDF_DATA_DIR="$HOME/.asdf"
    export BUN="$HOME/.bun/bin"
    export BUN_INSTALL="$HOME/.bun"
    export MISE_DATA_DIR="$HOME/.local/share/mise"
    export GEM_HOME="$HOME/gems"
    export KREW_ROOT="$HOME/.krew"
    export MODULAR_HOME="$HOME/.modular"
    export MODULAR_BIN="$MODULAR_HOME/bin"
    export N_PREFIX="$HOME/.n"
    export NPM_GLOBAL="$HOME/.npm-global/bin"
    export RUST_WITHOUT="rust-docs"
    export PATH="$ASDF_DATA_DIR/shims:$HOME/.cargo/bin:$MODULAR_BIN:$BUN:$BUN_INSTALL/bin:$HOME/.local/bin:$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$HOME/.rd/bin:$KREW_ROOT/bin:$GEM_HOME/bin:$N_PREFIX/bin:$NPM_GLOBAL:/usr/local/opt/gnu-getopt/bin:/usr/local/bin:/usr/local:/usr/local/sbin:$HOME/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
    export PATH="$MISE_DATA_DIR/shims:$HOME/.cargo/bin:$MODULAR_BIN:$HOME/.local/bin:$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$HOME/.rd/bin:$KREW_ROOT/bin:$GEM_HOME/bin:$N_PREFIX/bin:$NPM_GLOBAL:/usr/local/opt/gnu-getopt/bin:/usr/local/bin:/usr/local:/usr/local/sbin:$HOME/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
    export PATH=$(echo -n $PATH | awk -v RS=: -v ORS=: '!x[$0]++' | sed "s/\(.*\).\{1\}/\1/")

    # shell completions
    [[ -f "$ASDF_DATA_DIR/asdf.sh" ]] && . "$ASDF_DATA_DIR/asdf.sh"
    [[ -f "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
    [[ -f "$HOME/.fzf.bash" ]] && . "$HOME/.fzf.bash"
    [[ -f "$HOME/.gitleaks.bash" ]] && . "$HOME/.gitleaks.bash"
    @@ -91,7 +88,7 @@ export PATH=$(echo -n $PATH | awk -v RS=: -v ORS=: '!x[$0]++' | sed "s/\(.*\).\{
    [[ -f "$HOME/.bash_aliases" ]] && . "$HOME/.bash_aliases"

    # golang
    export GOPATH="$ASDF_DATA_DIR/shims"
    export GOPATH="${MISE_DATA_DIR}/shims"
    export GOCACHE="$HOME/go/cache"
    export GOPROXY="https://proxy.golang.org,direct"

    @@ -126,7 +123,7 @@ export PYTHONSTARTUP="$HOME/.config/startup.py"
    pip_install() { python -m pip install --user "$@"; }
    pip_uninstall() { python -m pip uninstall -y "$@"; }
    check_bin register-python-argcomplete && eval "$(register-python-argcomplete pipx)"
    export PIPX_DEFAULT_PYTHON="$ASDF_DATA_DIR/shims/python"
    # export PIPX_DEFAULT_PYTHON="$ASDF_DATA_DIR/shims/python" # TODO: switch to mise
    export UV_HTTP_TIMEOUT=60

    # TODO: adds literal seconds to prompt startup time
  26. pythoninthegrass revised this gist Jun 3, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -99,7 +99,7 @@ export GOPROXY="https://proxy.golang.org,direct"
    # eval "$(rbenv init - bash)"

    # Vim Default Editor
    export EDITOR="lvim"
    export EDITOR="vim"

    # Tame ansible-lint
    export LC_ALL=en_US.UTF-8
  27. pythoninthegrass revised this gist Jun 3, 2025. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -46,11 +46,6 @@ check_bin lvim && alias vim='lvim'
    alias claude="$HOME/.claude/local/claude"

    # atuin
    if [[ -f "$HOME/.atuin/bin/atuin" ]]; then
    export PATH="$HOME/.atuin/bin:$PATH"
    else
    export PATH="$HOME/.local/bin:$PATH"
    fi
    check_bin atuin && eval "$(atuin init bash --disable-up-arrow)"

    # multipass
  28. pythoninthegrass revised this gist Jun 3, 2025. No changes.
  29. pythoninthegrass revised this gist Jun 3, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    # export PATH="$CODE:$HOME/.asdf/shims:$PATH"

    # check if binary exists
    check_bin() { command -v "$1" >/dev/null 2>&1; }
    check_bin() { type -P "$1" >/dev/null 2>&1; }

    # aliases
    alias ll='ls -FGlAhp'
  30. pythoninthegrass revised this gist Jun 3, 2025. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .bash_aliases
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,11 @@ check_bin lvim && alias vim='lvim'
    alias claude="$HOME/.claude/local/claude"

    # atuin
    check_bin atuin && alias atuin="$HOME/.atuin/bin/atuin"
    if [[ -f "$HOME/.atuin/bin/atuin" ]]; then
    export PATH="$HOME/.atuin/bin:$PATH"
    else
    export PATH="$HOME/.local/bin:$PATH"
    fi
    check_bin atuin && eval "$(atuin init bash --disable-up-arrow)"

    # multipass