From d6f3d9de5bab5953037c0ee53cc85623ee704f8b Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Thu, 18 Apr 2024 21:55:13 +0200 Subject: [PATCH] add .zshrc --- .zshrc | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..94ae560 --- /dev/null +++ b/.zshrc @@ -0,0 +1,74 @@ +# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. +# Initialization code that may require console input (password prompts, [y/n] +# confirmations, etc.) must go above this block; everything else may go below. +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + +# Environment variables +export TERM=xterm-256color +export QT_QPA_PLATFORMTHEME=qt5ct +export GTK_THEME=Catppuccin-Mocha-Standard-Teal-Dark +export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/.dotnet/tools:$HOME/go/bin:$HOME/.local/lib/python3.8/site-packages:$HOME/.cargo/bin/:$HOME/.scripts/:$PATH +export ZSH="$HOME/.oh-my-zsh" +export JAVA_HOME="/usr/lib/jvm/java-17-openjdk/" +export PROJECTS="$HOME/Projects" +export SSH="$HOME/.ssh/" + +# Theme +ZSH_THEME="powerlevel10k/powerlevel10k" + +# I'm a hypocrite, so what? +DISABLE_UPDATE_PROMPT="true" + +# Plugins +plugins=(git zsh-autosuggestions) + +source $ZSH/oh-my-zsh.sh + +# User configuration +# export MANPATH="/usr/local/man:$MANPATH" + +# Aliases +# ZSH stuff +alias zshconfig="hx ~/.zshrc" +alias zshrc="hx ~/.zshrc" +alias omzsh="hx ~/.oh-my-zsh" + +# Package management +# alias update="yay -Syyu" +# alias autoremove="sudo pacman -Qdtq | sudo pacman --noconfirm -Rs -" +# alias list-aur-packages="sudo pacman -Qm" + +# Replacement +alias helix="hx" +alias firefox="librewolf" +alias thunderbird="betterbird" + +# Helpers +alias reload="xfce4-panel -r" +alias flatten="find . -mindepth 2 -type f -exec mv -i '{}' . ';'" +alias autoflatten="find . -mindepth 2 -type f -exec mv -f '{}' . ';'" +alias tardirs="for i in */; do tar -czvf "${i%/}.tar.gz" "$i"; done" +alias zipdirs="for i in */; do zip -r "${i%/}.zip" "$i"; done" + +# Scripts +alias dashboard="sh ~/.scripts/dashboard.sh" +alias dash="dashboard" + +# Programming +gi() { curl -sL https://www.gitignore.io/api/$@ ;} +licenses() { curl -sL https://licenses.holly.sh/$@ ;} + +# Funs +alias cowspeak="cowspeak -nc" +alias cowsay="cowspeak" +alias cowfortune="cowspeak" + +# Annoyances +alias steam-fix="sh ~/.scripts/steamfix.sh" + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +source $HOME/.config/broot/launcher/bash/br -- libgit2 1.7.2