2023-07-24 12:23:43 +02:00
|
|
|
#zmodload zsh/zprof
|
|
|
|
|
|
|
|
### YOUR CONFIGURATION
|
|
|
|
# Put your aliases etc, here.
|
|
|
|
# ...
|
|
|
|
# your original .zshrc has been moved to .zshrc.backup
|
|
|
|
|
|
|
|
HISTFILE="$HOME/.zsh_history"
|
|
|
|
HISTSIZE=1000000000
|
|
|
|
SAVEHIST=1000000000
|
|
|
|
setopt hist_ignore_all_dups
|
|
|
|
setopt hist_ignore_space
|
|
|
|
|
|
|
|
LW_PATH=~/git/github.com/lunarway
|
|
|
|
GOPATH=~/go
|
|
|
|
GOBIN="$GOPATH/bin"
|
|
|
|
PATH="$GOBIN:$PATH:$HOME/bin/:$HOME/.local/bin/:$HOME/.dotnet/tools"
|
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-24 13:02:25 +02:00
|
|
|
{{ end }}
|
2023-07-24 12:23:43 +02:00
|
|
|
|
|
|
|
export SHUTTLE_REMOTE_TRACING=default
|
|
|
|
export SHUTTLE_REMOTE_TRACING_URL=https://shuttle-telemetry.dev.lunar.tech/publish/batch
|
|
|
|
|
2023-07-24 13:02:25 +02:00
|
|
|
export GITHUB_TOKEN={{ .github_token | quote }}
|
|
|
|
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-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-24 12:23:43 +02:00
|
|
|
export GITHUB_FC_ROOT="/Users/kah/git/github.com"
|
|
|
|
export GITHUB_FC_ORGS="lunarway,kjuulh"
|
|
|
|
export BITEME_ROOT="$HOME/Documents/vaults/kjuulh"
|
|
|
|
#export AWS_ACCESS_KEY_ID="minio"
|
|
|
|
#export AWS_SECRET_KEY_ID="ed4bdcaba3e4bed421b46cc4d3d3a5863b9a4826"
|
|
|
|
|
|
|
|
alias devshuttle="$HOME/go/bin/shuttle"
|
|
|
|
alias kitty="kitty --config ~/.config/kitty/kitty.conf"
|
|
|
|
alias lg="lazygit"
|
2023-07-25 14:53:14 +02:00
|
|
|
alias hx="helix"
|
2023-07-24 12:23:43 +02:00
|
|
|
export LW_DEFAULT_THEME='false'
|
|
|
|
|
2023-07-25 19:16:31 +02:00
|
|
|
export EDITOR=helix
|
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
|
|
|
|
|
|
|
|
### 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)"
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
export SHUTTLE_CACHE_DURATION_MIN=10080
|
|
|
|
|
|
|
|
#alias nvim=lvim
|
|
|
|
alias cat=bat
|
|
|
|
alias python=python3
|
|
|
|
alias pip=pip3
|
|
|
|
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)"
|
|
|
|
|
|
|
|
#zprof
|
|
|
|
export ANSIBLE_VAULT_PASSWORD_FILE="~/.config/ansible/password"
|
|
|
|
export DRONE_SERVER=https://ci.i.kjuulh.io
|
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"
|
|
|
|
|
|
|
|
#zprof
|