|
| 1 | +# Enable Powerlevel10k instant prompt |
| 2 | +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then |
| 3 | + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" |
| 4 | +fi |
| 5 | + |
| 6 | +# Path to oh-my-zsh |
| 7 | +export ZSH="$HOME/.oh-my-zsh" |
| 8 | + |
| 9 | +# Set name of the theme to load |
| 10 | +ZSH_THEME="powerlevel10k/powerlevel10k" |
| 11 | + |
| 12 | +# ZSH plugins |
| 13 | +plugins=(git zsh-autosuggestions zsh-syntax-highlighting archlinux zsh-pyenv web-search) |
| 14 | +fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src |
| 15 | + |
| 16 | +# Oh My Zsh |
| 17 | +source $ZSH/oh-my-zsh.sh |
| 18 | + |
| 19 | +# Preferred editor |
| 20 | +export EDITOR="nano" |
| 21 | + |
| 22 | +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. |
| 23 | +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
| 24 | + |
| 25 | +# Something IDRK about GPG for SSH auth, also fix signing git commit |
| 26 | +#unset SSH_AGENT_PID |
| 27 | +#if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then |
| 28 | +# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" |
| 29 | +#fi |
| 30 | +#export GPG_TTY=$TTY |
| 31 | +#gpg-connect-agent updatestartuptty /bye > /dev/null |
| 32 | + |
| 33 | +# SSH Agent |
| 34 | +SSH_AUTH_SOCK="~/.ssh/agent" |
| 35 | + |
| 36 | +# Python |
| 37 | +export PATH="$HOME/.local/bin:$PATH" |
| 38 | +alias pip=pip3 |
| 39 | + |
| 40 | +# Ruby gem binaries |
| 41 | +export PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" |
| 42 | + |
| 43 | +# Android/Flutter |
| 44 | +export JAVA_OPTS="-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee" |
| 45 | +export JAVA_HOME="/usr/lib/jvm/java-16-openjdk" |
| 46 | +export ANDROID_SDK_ROOT="/opt/android-sdk" |
| 47 | +export PATH="/opt/flutter/bin:/opt/android-sdk/tools/bin:/opt/android-sdk/platform-tools:$PATH" |
| 48 | +export CHROME_EXECUTABLE="/usr/bin/brave" |
| 49 | + |
| 50 | +# Colorls |
| 51 | +alias ls=colorls |
| 52 | + |
| 53 | +# YoutubeDL |
| 54 | +alias ytdl=youtube-dl |
| 55 | + |
| 56 | +# Bun |
| 57 | +export PATH="$HOME/.bun/bin:$PATH" |
| 58 | +[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun" |
| 59 | + |
| 60 | +# Yarn |
| 61 | +export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" |
| 62 | + |
| 63 | +# Rust |
| 64 | +export PATH="$HOME/.cargo/bin:$PATH" |
| 65 | + |
| 66 | +# Spicetify |
| 67 | +export PATH=$PATH:$HOME/.spicetify |
0 commit comments