chezmoi/dot_zshrc.tmpl

150 lines
3.8 KiB
Cheetah
Raw Normal View History

#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"
Remove .config/air/.air.toml Remove .config/kitty/kitty-themes/CONTRIBUTING.md Remove .config/kitty/kitty-themes/LICENSE.md Remove .config/kitty/kitty-themes/README.md Remove .config/kitty/kitty-themes/.all-contributorsrc Remove .config/kitty/kitty-themes/.github/ISSUE_TEMPLATE/theme-request.md Remove .config/kitty/kitty-themes/.github/PULL_REQUEST_TEMPLATE.md Remove .config/kitty/kitty-themes/.github/kitty-themes.jpg Remove .config/kitty/kitty-themes/.tools/README.md Remove .config/kitty/kitty-themes/.tools/convert.py Remove .config/kitty/kitty-themes/.tools/color_table.sh Remove .config/kitty/kitty-themes/.tools/convert_conf.swift Remove .config/kitty/kitty-themes/.tools/extract-vscode.sh Remove .config/kitty/kitty-themes/.tools/generate_conf.sh Remove .config/kitty/kitty-themes/.tools/generate_theme_preview.sh Remove .config/kitty/kitty-themes/.tools/generate_themes_previews.sh Remove .config/kitty/kitty-themes/.tools/libcapture.sh Remove .config/kitty/kitty-themes/.tools/markdown.sh Remove .config/kitty/kitty-themes/.tools/previews.sh Remove .config/kitty/kitty-themes/.tools/windowid.swift Remove .config/kitty/kitty-themes/.tools/palette.py Remove .config/kitty/kitty-themes/.tools/preview.py Remove .config/kitty/kitty-themes/.tools/template.conf Remove .config/kitty/kitty-themes/.tools/template.conf.j2 Remove .config/kitty/kitty-themes/themes/3024_Day.conf Remove .config/kitty/kitty-themes/themes/3024_Night.conf Remove .config/kitty/kitty-themes/themes/AdventureTime.conf Remove .config/kitty/kitty-themes/themes/Afterglow.conf Remove .config/kitty/kitty-themes/themes/AlienBlood.conf Remove .config/kitty/kitty-themes/themes/Alucard.conf Remove .config/kitty/kitty-themes/themes/Apprentice.conf Remove .config/kitty/kitty-themes/themes/Argonaut.conf Remove .config/kitty/kitty-themes/themes/Arthur.conf Remove .config/kitty/kitty-themes/themes/AtelierSulphurpool.conf Remove .config/kitty/kitty-themes/themes/Atom.conf Remove .config/kitty/kitty-themes/themes/AtomOneLight.conf Remove .config/kitty/kitty-themes/themes/Batman.conf Remove .config/kitty/kitty-themes/themes/Belafonte_Day.conf Remove .config/kitty/kitty-themes/themes/Belafonte_Night.conf Remove .config/kitty/kitty-themes/themes/BirdsOfParadise.conf Remove .config/kitty/kitty-themes/themes/Blazer.conf Remove .config/kitty/kitty-themes/themes/Borland.conf Remove .config/kitty/kitty-themes/themes/Bright_Lights.conf Remove .config/kitty/kitty-themes/themes/Broadcast.conf Remove .config/kitty/kitty-themes/themes/Brogrammer.conf Remove .config/kitty/kitty-themes/themes/C64.conf Remove .config/kitty/kitty-themes/themes/CLRS.conf Remove .config/kitty/kitty-themes/themes/Chalk.conf Remove .config/kitty/kitty-themes/themes/Chalkboard.conf Remove .config/kitty/kitty-themes/themes/Ciapre.conf Remove .config/kitty/kitty-themes/themes/Cobalt2.conf Remove .config/kitty/kitty-themes/themes/Cobalt_Neon.conf Remove .config/kitty/kitty-themes/themes/CrayonPonyFish.conf Remove .config/kitty/kitty-themes/themes/Dark_Pastel.conf Remove .config/kitty/kitty-themes/themes/Darkside.conf Remove .config/kitty/kitty-themes/themes/Desert.conf Remove .config/kitty/kitty-themes/themes/DimmedMonokai.conf Remove .config/kitty/kitty-themes/themes/DotGov.conf Remove .config/kitty/kitty-themes/themes/Dracula.conf Remove .config/kitty/kitty-themes/themes/Dumbledore.conf Remove .config/kitty/kitty-themes/themes/Duotone_Dark.conf Remove .config/kitty/kitty-themes/themes/ENCOM.conf Remove .config/kitty/kitty-themes/themes/Earthsong.conf Remove .config/kitty/kitty-themes/themes/Elemental.conf Remove .config/kitty/kitty-themes/themes/Espresso.conf Remove .config/kitty/kitty-themes/themes/Espresso_Libre.conf Remove .config/kitty/kitty-themes/themes/Fideloper.conf Remove .config/kitty/kitty-themes/themes/FishTank.conf Remove .config/kitty/kitty-themes/themes/Flat.conf Remove .config/kitty/kitty-themes/themes/Flatland.conf Remove .config/kitty/kitty-themes/themes/Floraverse.conf Remove .config/kitty/kitty-themes/themes/FrontEndDelight.conf Remove .config/kitty/kitty-themes/themes/FunForrest.conf Remove .config/kitty/kitty-themes/themes/Galaxy.conf Remove .config/kitty/kitty-themes/themes/Github.conf Remove .config/kitty/kitty-themes/themes/Glacier.conf Remove .config/kitty/kitty-themes/themes/GoaBase.conf Remove .config/kitty/kitty-themes/themes/Grape.conf Remove .config/kitty/kitty-themes/themes/Grass.conf Remove .config/kitty/kitty-themes/themes/Hardcore.conf Remove .config/kitty/kitty-themes/themes/Harper.conf Remove .config/kitty/kitty-themes/themes/Highway.conf Remove .config/kitty/kitty-themes/themes/Hipster_Green.conf Remove .config/kitty/kitty-themes/themes/Homebrew.conf Remove .config/kitty/kitty-themes/themes/Hurtado.conf Remove .config/kitty/kitty-themes/themes/Hybrid.conf Remove .config/kitty/kitty-themes/themes/IC_Green_PPL.conf Remove .config/kitty/kitty-themes/themes/IC_Orange_PPL.conf Remove .config/kitty/kitty-themes/themes/IR_Black.conf Remove .config/kitty/kitty-themes/themes/Jackie_Brown.conf Remove .config/kitty/kitty-themes/themes/Japanesque.conf Remove .config/kitty/kitty-themes/themes/Jellybeans.conf Remove .config/kitty/kitty-themes/themes/JetBrains_Darcula.conf Remove .config/kitty/kitty-themes/themes/Kibble.conf Remove .config/kitty/kitty-themes/themes/Later_This_Evening.conf Remove .config/kitty/kitty-themes/themes/Lavandula.conf Remove .config/kitty/kitty-themes/themes/LiquidCarbon.conf Remove .config/kitty/kitty-themes/themes/LiquidCarbonTransparent.conf Remove .config/kitty/kitty-themes/themes/LiquidCarbonTransparentInverse.conf Remove .config/kitty/kitty-themes/themes/Man_Page.conf Remove .config/kitty/kitty-themes/themes/Material.conf Remove .config/kitty/kitty-themes/themes/MaterialDark.conf Remove .config/kitty/kitty-themes/themes/Mathias.conf Remove .config/kitty/kitty-themes/themes/Medallion.conf Remove .config/kitty/kitty-themes/themes/Misterioso.conf Remove .config/kitty/kitty-themes/themes/Molokai.conf Remove .config/kitty/kitty-themes/themes/MonaLisa.conf Remove .config/kitty/kitty-themes/themes/Monokai.conf Remove .config/kitty/kitty-themes/themes/Monokai_Classic.conf Remove .config/kitty/kitty-themes/themes/Monokai_Pro.conf Remove .config/kitty/kitty-themes/themes/Monokai_Pro_(Filter_Machine).conf Remove .config/kitty/kitty-themes/themes/Monokai_Pro_(Filter_Octagon).conf Remove .config/kitty/kitty-themes/themes/Monokai_Pro_(Filter_Ristretto).conf Remove .config/kitty/kitty-themes/themes/Monokai_Pro_(Filter_Spectrum).conf Remove .config/kitty/kitty-themes/themes/Monokai_Soda.conf Remove .config/kitty/kitty-themes/themes/N0tch2k.conf Remove .config/kitty/kitty-themes/themes/Neopolitan.conf Remove .config/kitty/kitty-themes/themes/Neutron.conf Remove .config/kitty/kitty-themes/themes/NightLion_v1.conf Remove .config/kitty/kitty-themes/themes/NightLion_v2.conf Remove .config/kitty/kitty-themes/themes/Nova.conf Remove .config/kitty/kitty-themes/themes/Novel.conf Remove .config/kitty/kitty-themes/themes/Obsidian.conf Remove .config/kitty/kitty-themes/themes/Ocean.conf Remove .config/kitty/kitty-themes/themes/OceanicMaterial.conf Remove .config/kitty/kitty-themes/themes/Ollie.conf Remove .config/kitty/kitty-themes/themes/OneDark.conf Remove .config/kitty/kitty-themes/themes/Parasio_Dark.conf Remove .config/kitty/kitty-themes/themes/PaulMillr.conf Remove .config/kitty/kitty-themes/themes/PencilDark.conf Remove .config/kitty/kitty-themes/themes/PencilLight.conf Remove .config/kitty/kitty-themes/themes/Piatto_Light.conf Remove .config/kitty/kitty-themes/themes/Pnevma.conf Remove .config/kitty/kitty-themes/themes/Pro.conf Remove .config/kitty/kitty-themes/themes/Red_Alert.conf Remove .config/kitty/kitty-themes/themes/Red_Sands.conf Remove .config/kitty/kitty-themes/themes/Relaxed_Afterglow.conf Remove .config/kitty/kitty-themes/themes/Renault_Style.conf Remove .config/kitty/kitty-themes/themes/Renault_Style_Light.conf Remove .config/kitty/kitty-themes/themes/Rippedcasts.conf Remove .config/kitty/kitty-themes/themes/Royal.conf Remove .config/kitty/kitty-themes/themes/SeaShells.conf Remove .config/kitty/kitty-themes/themes/Seafoam_Pastel.conf Remove .config/kitty/kitty-themes/themes/Seti.conf Remove .config/kitty/kitty-themes/themes/Shaman.conf Remove .config/kitty/kitty-themes/themes/Slate.conf Remove .config/kitty/kitty-themes/themes/Smyck.conf Remove .config/kitty/kitty-themes/themes/SoftServer.conf Remove .config/kitty/kitty-themes/themes/Solarized_Darcula.conf Remove .config/kitty/kitty-themes/themes/Solarized_Dark.conf Remove .config/kitty/kitty-themes/themes/Solarized_Dark_-_Patched.conf Remove .config/kitty/kitty-themes/themes/Solarized_Dark_Higher_Contrast.conf Remove .config/kitty/kitty-themes/themes/Solarized_Light.conf Remove .config/kitty/kitty-themes/themes/Source_Code_X.conf Remove .config/kitty/kitty-themes/themes/SpaceGray.conf Remove .config/kitty/kitty-themes/themes/SpaceGray_Eighties.conf Remove .config/kitty/kitty-themes/themes/SpaceGray_Eighties_Dull.conf Remove .config/kitty/kitty-themes/themes/Spacedust.conf Remove .config/kitty/kitty-themes/themes/Spiderman.conf Remove .config/kitty/kitty-themes/themes/Spring.conf Remove .config/kitty/kitty-themes/themes/Square.conf Remove .config/kitty/kitty-themes/themes/Sundried.conf Remove .config/kitty/kitty-themes/themes/Symfonic.conf Remove .config/kitty/kitty-themes/themes/Tango_Dark.conf Remove .config/kitty/kitty-themes/themes/Tango_Light.conf Remove .config/kitty/kitty-themes/themes/Teerb.conf Remove .config/kitty/kitty-themes/themes/Thayer_Bright.conf Remove .config/kitty/kitty-themes/themes/The_Hulk.conf Remove .config/kitty/kitty-themes/themes/Tomorrow.conf Remove .config/kitty/kitty-themes/themes/Tomorrow_Night.conf Remove .config/kitty/kitty-themes/themes/Tomorrow_Night_Blue.conf Remove .config/kitty/kitty-themes/themes/Tomorrow_Night_Bright.conf Remove .config/kitty/kitty-themes/themes/Tomorrow_Night_Eighties.conf Remove .config/kitty/kitty-themes/themes/ToyChest.conf Remove .config/kitty/kitty-themes/themes/Treehouse.conf Remove .config/kitty/kitty-themes/themes/Twilight.conf Remove .config/kitty/kitty-themes/themes/Ubuntu.conf Remove .config/kitty/kitty-themes/themes/Urple.conf Remove .config/kitty/kitty-themes/themes/Vaughn.conf Remove .config/kitty/kitty-themes/themes/VibrantInk.conf Remove .config/kitty/kitty-themes/themes/WarmNeon.conf Remove .config/kitty/kitty-themes/themes/Wez.conf Remove .config/kitty/kitty-themes/themes/WildCherry.conf Remove .config/kitty/kitty-themes/themes/Wombat.conf Remove .config/kitty/kitty-themes/themes/Wryan.conf Remove .config/kitty/kitty-themes/themes/Zenburn.conf Remove .config/kitty/kitty-themes/themes/ayu.conf Remove .config/kitty/kitty-themes/themes/ayu_light.conf Remove .config/kitty/kitty-themes/themes/ayu_mirage.conf Remove .config/kitty/kitty-themes/themes/gruvbox_dark.conf Remove .config/kitty/kitty-themes/themes/gruvbox_light.conf Remove .config/kitty/kitty-themes/themes/idleToes.conf Remove .config/kitty/kitty-themes/themes/snazzy.conf Remove .config/kitty/kitty.conf Remove .config/kitty/theme.conf Remove .config/kitty/themes/kitty/LICENSE Remove .config/kitty/themes/kitty/README.md Remove .config/kitty/themes/kitty/assets/frappe.webp Remove .config/kitty/themes/kitty/assets/latte.webp Remove .config/kitty/themes/kitty/assets/macchiato.webp Remove .config/kitty/themes/kitty/assets/mocha.webp Remove .config/kitty/themes/kitty/assets/preview.webp Remove .config/kitty/themes/kitty/.editorconfig Remove .config/kitty/themes/kitty/themes/diff-frappe.conf Remove .config/kitty/themes/kitty/themes/diff-latte.conf Remove .config/kitty/themes/kitty/themes/diff-macchiato.conf Remove .config/kitty/themes/kitty/themes/diff-mocha.conf Remove .config/kitty/themes/kitty/themes/frappe.conf Remove .config/kitty/themes/kitty/themes/latte.conf Remove .config/kitty/themes/kitty/themes/macchiato.conf Remove .config/kitty/themes/kitty/themes/mocha.conf Remove .config/ranger/.keep Remove .config/zathura/.keep Update .zshrc
2023-07-25 19:17:42 +02:00
PATH="$GOBIN:$PATH:$HOME/bin/:$HOME/.local/bin/:$HOME/.dotnet/tools:$HOME/.cargo/bin"
2023-07-24 13:02:25 +02:00
{{ if .homebrew }}
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 }}
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"
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 }}
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"
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"
alias hx="helix"
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 }}
fpath=("$HOME/.zsh_completions/" $fpath)
2023-07-24 13:02:25 +02:00
{{ if .homebrew }}
fpath=("$(brew --prefix)/share/zsh/site-functions" $fpath)
2023-07-24 13:02:25 +02:00
{{ end }}
# 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 }}
k8s_init kah@lunar.app admin
2023-07-24 13:02:25 +02:00
{{ end }}
#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 }}"
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 }}
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 }}
export GITEA_URL="https://git.i.kjuulh.io/api/v1"
export GITEA_ORG="kjuulh"
#zprof