2023-07-24 12:23:43 +02:00
|
|
|
#zmodload zsh/zprof
|
|
|
|
|
|
|
|
HISTFILE="$HOME/.zsh_history"
|
|
|
|
HISTSIZE=1000000000
|
|
|
|
SAVEHIST=1000000000
|
|
|
|
setopt hist_ignore_all_dups
|
|
|
|
setopt hist_ignore_space
|
|
|
|
|
2024-10-19 11:11:53 +02:00
|
|
|
{{ if .homebrew }}
|
2024-12-18 22:22:43 +01:00
|
|
|
#. ~/.asdf/plugins/golang/set-env.zsh
|
2023-10-09 21:11:42 +02:00
|
|
|
|
2024-10-19 11:11:53 +02:00
|
|
|
{{ end }}
|
2023-07-24 12:23:43 +02:00
|
|
|
LW_PATH=~/git/github.com/lunarway
|
|
|
|
GOPATH=~/go
|
|
|
|
GOBIN="$GOPATH/bin"
|
2024-01-28 15:51:13 +01:00
|
|
|
PATH="$HOME/.asdf/shims/:$GOBIN:$PATH:$HOME/bin/:$HOME/.local/bin/:$HOME/.dotnet/tools:$HOME/.cargo/bin:$HOME/.yarn/bin:$HOME/Library/Application Support/Coursier/bin:${KREW_ROOT:-$HOME/.krew}/bin"
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ if .homebrew }}
|
2023-07-24 12:23:43 +02:00
|
|
|
export PATH="/opt/homebrew/opt/libpq/bin:$HOME/.git-bins/:$PATH"
|
|
|
|
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH:$(brew --prefix llvm)/bin:$(brew --prefix llvm)/lib"
|
2023-07-27 12:26:22 +02:00
|
|
|
export PATH=/opt/homebrew/bin:$PATH
|
2023-10-17 09:51:37 +02:00
|
|
|
export PATH="/Users/kah/.rustup/toolchains/nightly-aarch64-apple-darwin/bin:$PATH"
|
2024-10-19 11:11:53 +02:00
|
|
|
export PATH="$GOBIN/:$PATH"
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ end }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
2024-03-29 23:24:45 +01:00
|
|
|
export DAGGER_CLOUD_TOKEN={{.dagger_cloud_token | quote}}
|
|
|
|
|
2023-10-26 21:46:00 +02:00
|
|
|
export SHUTTLE_INTERACTIVE=true
|
|
|
|
export SHUTTLE_REMOTE_TRACING=remote
|
2024-01-11 11:54:01 +01:00
|
|
|
export SHUTTLE_REMOTE_TRACING_URL=https://shuttle-telemetry.dev.lunar.tech/publish
|
2024-02-14 12:42:55 +01:00
|
|
|
export SHUTTLE_GOLANG_ACTIONS=true
|
2023-07-24 12:23:43 +02:00
|
|
|
|
2023-07-24 13:02:25 +02:00
|
|
|
export GITHUB_TOKEN={{ .github_token | quote }}
|
2023-08-15 10:25:55 +02:00
|
|
|
export GITHUB_USERNAME=kjuulh
|
2023-07-24 13:02:25 +02:00
|
|
|
export GITHUB_ACCESS_TOKEN="$GITHUB_TOKEN"
|
2023-07-24 12:23:43 +02:00
|
|
|
export HOMEBREW_GITHUB_API_TOKEN="$GITHUB_ACCESS_TOKEN"
|
2023-07-24 13:02:25 +02:00
|
|
|
export GITHUB_LUNAR_CI_TOKEN="$GITHUB_ACCESS_TOKEN"
|
|
|
|
export RENOVATE_TOKEN={{ .renovate_token | quote }}
|
2023-08-25 22:41:04 +02:00
|
|
|
|
2023-12-23 23:13:55 +01:00
|
|
|
export CLANK_KUBERNETES_CONFIGS={{ .clank_kubernetes_configs_path }}
|
|
|
|
|
2023-08-25 22:41:04 +02:00
|
|
|
# Toolkit
|
2023-07-24 12:23:43 +02:00
|
|
|
export SRC_ENDPOINT=https://lunar.sourcegraph.com
|
2023-07-24 13:02:25 +02:00
|
|
|
export SRC_ACCESS_TOKEN={{ .source_graph_token | quote }}
|
2023-07-25 19:25:03 +02:00
|
|
|
export GITHUB_FC_ROOT="$HOME/git/github.com"
|
2023-07-24 12:23:43 +02:00
|
|
|
export GITHUB_FC_ORGS="lunarway,kjuulh"
|
2023-08-25 22:41:04 +02:00
|
|
|
|
|
|
|
export GITEA_FUZZY_CLONE_ROOT="$HOME/git/git.front.kjuulh.io"
|
|
|
|
export GITEA_FUZZY_CLONE_ORGS="kjuulh"
|
|
|
|
|
2023-11-12 11:54:20 +01:00
|
|
|
{{ if .homebrew }}
|
2023-07-24 12:23:43 +02:00
|
|
|
export BITEME_ROOT="$HOME/Documents/vaults/kjuulh"
|
2023-11-12 11:54:20 +01:00
|
|
|
{{ else }}
|
|
|
|
export BITEME_ROOT="$HOME/Documents/obsidian"
|
|
|
|
{{ end }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
2023-07-27 12:28:10 +02:00
|
|
|
{{ if not .homebrew -}}
|
2023-08-23 21:28:27 +02:00
|
|
|
#alias hx="helix"
|
|
|
|
export EDITOR=hx
|
2023-07-27 12:31:11 +02:00
|
|
|
{{ else }}
|
2023-10-09 21:11:42 +02:00
|
|
|
HELIX_RUNTIME=/Users/kah/git/github.com/kjuulh/helix/runtime
|
2023-07-27 12:32:38 +02:00
|
|
|
export EDITOR=hx
|
2023-07-27 12:27:24 +02:00
|
|
|
{{ end -}}
|
2023-07-24 12:23:43 +02:00
|
|
|
export LW_DEFAULT_THEME='false'
|
|
|
|
|
2023-07-24 13:02:25 +02:00
|
|
|
export HAMCTL_AUTH_TOKEN={{ .hamctl_token | quote }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
fpath=("$HOME/.zsh_completions/" $fpath)
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ if .homebrew }}
|
2023-07-24 12:23:43 +02:00
|
|
|
fpath=("$(brew --prefix)/share/zsh/site-functions" $fpath)
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ end }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
# Use degit for faster cloning
|
|
|
|
#zstyle ':zim:completion' dumpfile
|
|
|
|
#zstyle ':completion::complete:*' cache-path ${XDG_CACHE_HOME}/zsh/zcompcache
|
|
|
|
zstyle ':zim:zmodule' use 'degit'
|
|
|
|
|
|
|
|
# set home
|
|
|
|
export ZIM_HOME=~/.zim
|
|
|
|
|
|
|
|
# Fetch zim package manager
|
|
|
|
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
|
|
|
|
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
|
|
|
|
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install missing modules, and update ${ZIM_HOME}/init.zsh if missing or outdated.
|
|
|
|
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
|
|
|
source ${ZIM_HOME}/zimfw.zsh init -q
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Initialize modules.
|
|
|
|
source ${ZIM_HOME}/init.zsh
|
2023-08-22 13:40:41 +02:00
|
|
|
source ~/bin/zimfwupdate.sh
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
### Lunar Way Setup ###
|
|
|
|
|
|
|
|
# Init zplug
|
|
|
|
#source ~/.zplug/init.zsh
|
|
|
|
|
|
|
|
# Instruct zplug to use ssh for fetching plugins
|
|
|
|
#ZPLUG_PROTOCOL=ssh
|
|
|
|
|
|
|
|
# Load default plugins from lw-zsh
|
|
|
|
#source ~/.zplug/repos/lunarway/lw-zsh/default-plugins.zsh
|
|
|
|
|
|
|
|
# Load plugins using zplug
|
|
|
|
#zplug "lunarway/lw-zsh"
|
|
|
|
#zplug "lunarway/hubble-zsh"
|
|
|
|
|
|
|
|
# Check for updates and install them
|
|
|
|
#if ! zplug check; then
|
|
|
|
# zplug install
|
|
|
|
#fi
|
|
|
|
|
|
|
|
# Load all zplug plugins
|
|
|
|
#zplug load
|
|
|
|
|
|
|
|
# Configure Lunar Way kubernetes setup
|
|
|
|
#k8s_init kah@lunar.app
|
|
|
|
|
|
|
|
# Periodic updates
|
|
|
|
#lw_periodic_update
|
|
|
|
|
|
|
|
### Theme overrides here
|
|
|
|
|
|
|
|
## Dot files
|
|
|
|
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
|
|
|
|
|
|
## Dev hamctl
|
|
|
|
#alias devhamctl='HAMCTL_URL="https://some-url" go run github.com/lunarway/release-manager cmd/hamctl/main.go'
|
|
|
|
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ if .lunar }}
|
2023-07-24 12:23:43 +02:00
|
|
|
k8s_init kah@lunar.app admin
|
2023-07-24 13:02:25 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2023-07-24 12:23:43 +02:00
|
|
|
#k8s_init kah@lunar.app dev
|
|
|
|
|
|
|
|
#eval "$(starship init zsh)"
|
|
|
|
eval "$(zoxide init zsh)"
|
2024-03-09 10:38:07 +01:00
|
|
|
eval "$(fuzzy-clone init zsh)"
|
2024-09-23 20:15:36 +02:00
|
|
|
eval "$(gitnow init zsh)"
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
# pnpm
|
2023-07-24 13:02:25 +02:00
|
|
|
export PNPM_HOME="{{ .pnpm_home }}"
|
2023-07-24 12:23:43 +02:00
|
|
|
export PATH="$PNPM_HOME:$PATH"
|
|
|
|
# pnpm end
|
|
|
|
#
|
|
|
|
|
|
|
|
alias ,="source ,cd"
|
2023-08-26 12:19:50 +02:00
|
|
|
alias ,g="source ,ccd"
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
export SHUTTLE_CACHE_DURATION_MIN=10080
|
|
|
|
|
|
|
|
#alias nvim=lvim
|
|
|
|
alias cat=bat
|
|
|
|
alias python=python3
|
|
|
|
alias pip=pip3
|
2024-12-18 22:22:43 +01:00
|
|
|
alias ll="eza -l -g --icons"
|
|
|
|
alias ls="eza --icons"
|
|
|
|
|
|
|
|
|
2023-07-24 12:23:43 +02:00
|
|
|
export LESS=-R
|
|
|
|
export _EXPERIMENTAL_DAGGER_TUI=yep
|
2023-07-24 13:02:25 +02:00
|
|
|
export OPENAI_API_KEY={{ .openai_token | quote }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
eval "$(starship init zsh)"
|
2024-03-12 12:16:23 +01:00
|
|
|
eval "$(atuin init zsh)"
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
#zprof
|
|
|
|
export ANSIBLE_VAULT_PASSWORD_FILE="~/.config/ansible/password"
|
|
|
|
export DRONE_SERVER=https://ci.i.kjuulh.io
|
2024-03-30 02:09:34 +01:00
|
|
|
export DRONE_HOST=https://ci.i.kjuulh.io
|
|
|
|
export DRONE_USER=kjuulh
|
2023-07-24 13:02:25 +02:00
|
|
|
export DRONE_TOKEN={{ .drone_token | quote }}
|
|
|
|
export GITEA_ACCESS_TOKEN={{ .gitea_token | quote }}
|
2023-07-24 12:23:43 +02:00
|
|
|
export GITEA_URL="https://git.i.kjuulh.io/api/v1"
|
|
|
|
export GITEA_ORG="kjuulh"
|
|
|
|
|
2023-10-26 21:45:08 +02:00
|
|
|
# bun completions
|
|
|
|
[ -s "/Users/kah/.bun/_bun" ] && source "/Users/kah/.bun/_bun"
|
|
|
|
|
|
|
|
# bun
|
|
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
|
|
|
2024-03-03 13:17:11 +01:00
|
|
|
export GITHUB_COMMITTER_EMAIL=contact@kjuulh
|
|
|
|
export GITHUB_COMMITTER_NAME=kjuulh
|
|
|
|
export SHUTTLE_EXTENSIONS_REGISTRY="git=git@github.com:kjuulh/shuttle-extensions.git"
|
2024-06-25 12:38:26 +02:00
|
|
|
export LUNARCTL_REGISTRY="git=git@github.com:lunarway/lunarctl-registry.git"
|
2024-03-08 15:07:12 +01:00
|
|
|
export SHUTTLE_EXTENSIONS_GITHUB_ACCESS_TOKEN="$GITHUB_TOKEN"
|
2024-04-09 23:30:40 +02:00
|
|
|
export CUDDLE_PLEASE_TOKEN=$GITEA_ACCESS_TOKEN
|
2024-03-03 13:17:11 +01:00
|
|
|
|
2023-07-24 12:23:43 +02:00
|
|
|
#zprof
|