obb-dots/zsh/.zshrc
2025-02-27 16:05:12 -05:00

64 lines
2.3 KiB
Bash

# 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
#ZSH_THEME="fino-time" # set by `omz`
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
ubuntu
zsh-autosuggestions
zsh-syntax-highlighting
)
# Check archlinux plugin commands here
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/archlinux
# Display Pokemon-colorscripts
# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos
pokemon-colorscripts --no-title -s -r
# fastfetch. Will be disabled if above colorscript was chosen to install
#fastfetch -c $HOME/.config/fastfetch/config-compact.jsonc
# Set-up icons for files/folders in terminal
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
# Set-up FZF key bindings (CTRL R for fuzzy history finder)
#source <(fzf)
source $ZSH/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias ls='eza --icons --group-directories-first'
alias ll='ls -l'
alias lt='ls -a --tree --level=1 --icons'
alias lT='ls -a --tree --icons --git-ignore'
alias fix-key='sudo rm /var/lib/pacman/sync/* && sudo rm -rf /etc/pacman.d/gnupg/* && sudo pacman-key --init && sudo pacman-key --populate && sudo pacman -Sy --noconfirm archlinux-keyring && sudo pacman --noconfirm -Su'
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
alias cls='clear;pokemon-colorscripts --no-title -s -r'
alias pkg='sudo apt'
#alias ls='lsd --group-dirs first -XFh --color always'
#alias ll='ls -l'
alias status='git status'
alias ci='git commit -a -m"update"'
alias push='git push'
alias cpush='ci && push'
alias tddv='clear; valgrind --leak-check=full -s --track-origins=yes --keep-stacktraces=alloc-and-free tddv/main.app'
alias checkleaks='clear; valgrind --leak-check=full -s --track-origins=yes --keep-stacktraces=alloc-and-free'