feat: initial commit
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
commit
901d0e9c04
160
dot_zshrc
Normal file
160
dot_zshrc
Normal file
@ -0,0 +1,160 @@
|
||||
#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"
|
||||
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"
|
||||
|
||||
export SHUTTLE_REMOTE_TRACING=default
|
||||
export SHUTTLE_REMOTE_TRACING_URL=https://shuttle-telemetry.dev.lunar.tech/publish/batch
|
||||
|
||||
export GITHUB_TOKEN=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
|
||||
export GITHUB_ACCESS_TOKEN=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
|
||||
export HOMEBREW_GITHUB_API_TOKEN="$GITHUB_ACCESS_TOKEN"
|
||||
export GITHUB_LUNAR_CI_TOKEN=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
|
||||
export RENOVATE_TOKEN=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
|
||||
export SRC_ENDPOINT=https://lunar.sourcegraph.com
|
||||
export SRC_ACCESS_TOKEN=29729894d1a59e4bd82378f7248cc6e752217be7
|
||||
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"
|
||||
|
||||
export LW_DEFAULT_THEME='false'
|
||||
|
||||
export EDITOR=hx
|
||||
export HAMCTL_AUTH_TOKEN=RrZa8JGgLJW87rZfegyKkCE8cgJ8Vc9t
|
||||
|
||||
fpath=("$HOME/.zsh_completions/" $fpath)
|
||||
fpath=("$(brew --prefix)/share/zsh/site-functions" $fpath)
|
||||
|
||||
# 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'
|
||||
|
||||
k8s_init kah@lunar.app admin
|
||||
#k8s_init kah@lunar.app dev
|
||||
|
||||
#eval "$(starship init zsh)"
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
# pnpm
|
||||
export PNPM_HOME="/Users/kah/Library/pnpm"
|
||||
export PATH="$PNPM_HOME:$PATH"
|
||||
# pnpm end
|
||||
#
|
||||
|
||||
alias ,="source ,cd"
|
||||
alias ,code="toolkit stats code"
|
||||
alias ,network="toolkit stats network"
|
||||
alias ,procs="toolkit stats procs"
|
||||
alias ,storage="toolkit stats storage"
|
||||
alias ,perf="toolkit stats perf"
|
||||
|
||||
source ~/bin/,git-toolkit
|
||||
#source ~/bin/git-shortcuts.sh
|
||||
source ~/bin/terraform.sh
|
||||
source ~/bin/zimfwupdate.sh
|
||||
source ~/bin/sanity.sh
|
||||
source ~/bin/ssh-agent.sh
|
||||
#source ~/bin/lunardev.sh
|
||||
source ~/bin/tmux.sh
|
||||
|
||||
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
|
||||
export OPENAI_API_KEY=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
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
#zprof
|
||||
export ANSIBLE_VAULT_PASSWORD_FILE="~/.config/ansible/password"
|
||||
export DRONE_SERVER=https://ci.i.kjuulh.io
|
||||
export DRONE_TOKEN=z1gpPUNI0dAgxtCqvk1aFhyyRn6S1n05
|
||||
export GITEA_ACCESS_TOKEN="ce9e500e0dace93d17305b36cd4255dba1d41ad0"
|
||||
export GITEA_URL="https://git.i.kjuulh.io/api/v1"
|
||||
export GITEA_ORG="kjuulh"
|
||||
|
||||
|
||||
ulimit -n 4096
|
||||
|
||||
|
||||
#zprof
|
Loading…
Reference in New Issue
Block a user