Compare commits

..

3 Commits

Author SHA1 Message Date
6f21c293ad fix(zshrc): update .zshrc copy 2026-02-02 11:48:07 +01:00
6235a2c6eb feat(nvm): speed up nvm startup by enabling lazy loading 2026-02-02 11:46:30 +01:00
5a78dc26fa feat(gh): add gh config 2026-02-02 11:45:02 +01:00
4 changed files with 43 additions and 14 deletions

2
.gitignore vendored
View File

@@ -15,3 +15,5 @@ gcloud/
htop/
mcphub
spicetify
gh/hosts.yml

16
gh/config.yml Normal file
View File

@@ -0,0 +1,16 @@
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor:
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
pager:
# Aliases allow you to create nicknames for gh commands
aliases:
co: pr checkout
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
http_unix_socket:
# What web browser gh should use when opening URLs. If blank, will refer to environment.
browser:
version: "1"

View File

@@ -1,7 +1,5 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# Theme
fpath+=("$(brew --prefix)/share/zsh/site-functions")
fpath+=("/opt/homebrew/share/zsh/site-functions")
fpath+=$HOME/.zsh/pure
autoload -U promptinit; promptinit
@@ -12,21 +10,26 @@ prompt pure
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/opt/homebrew/bin:$PATH
export PATH=$(go env GOPATH)/bin:$PATH
export PATH="$HOME/go/bin:$PATH"
export PATH=/User/oliverhnat/.local/bin/claude:$PATH
export EDITOR="/opt/homebrew/bin/nvim"
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Skip compaudit (saves ~150ms on cold start)
ZSH_DISABLE_COMPFIX=true
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export HOMEBREW_NO_AUTO_UPDATE=1
export GITLAB_URL=https://gitlab.elnino.tech
export ANTHROPIC_API_KEY=
export GEMINI_API_KEY=
export HOMEBREW_NO_AUTO_UPDATE=1
export GITLAB_TOKEN=
export GITLAB_URL=
export TAVILY_API_KEY=
# Set name of the theme to load --- if set to "random", it will
@@ -97,10 +100,11 @@ ZSH_THEME=""
# Add wisely, as too many plugins slow down shell startup.
plugins=(
tmuxinator
git
yarn
docker
docker-compose
# docker
# docker-compose
zsh-autosuggestions
zsh-z
zsh-syntax-highlighting # Needs to be the last plugin
@@ -135,18 +139,15 @@ source $ZSH/oh-my-zsh.sh
# Change colors of the LS command output
# export LSCOLORS=Dxfxcxdxbxegedabagacad
source /Users/oliverhnat/.docker/init-zsh.sh || true # Added by Docker Desktop
# User configuration
source ~/.oh-my-zsh/custom/custom_commands.sh
source ~/.config/omz-custom/custom_commands.sh
source ~/.config/omz-custom/tmux-sessions.sh
[ -f "/Users/oliverhnat/.ghcup/env" ] && . "/Users/oliverhnat/.ghcup/env" # ghcup-env
. "$HOME/.local/bin/env"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source ~/.config/omz-custom/nvm.sh
export PATH="$HOME/.local/bin:$PATH"

10
omz-custom/nvm.sh Normal file
View File

@@ -0,0 +1,10 @@
# NVM lazy loading (speeds up shell startup significantly)
export NVM_DIR="$HOME/.nvm"
nvm() {
unset -f nvm node npm npx
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm "$@"
}
node() { nvm; unset -f node; node "$@"; }
npm() { nvm; unset -f npm; npm "$@"; }
npx() { nvm; unset -f npx; npx "$@"; }