So many updates that I don't remember what I did since the last commit

This commit is contained in:
Gu://em_ 2025-05-04 23:53:29 +02:00
parent ec120f92ce
commit 7c718c80dc
21 changed files with 991 additions and 18 deletions

12
.zshrc
View file

@ -76,6 +76,7 @@ setopt correct # 'Did you mean'
# Environment variables
export PATH=$PATH:~/.local/bin
export PATH=$PATH:~/.local/share/Xilinx/Vivado/2024.2/bin
# Aliases
alias cl='clear'
@ -92,15 +93,22 @@ alias pprof-list='cat /sys/firmware/acpi/platform_profile_choices' # Lists the a
alias power-draw="cat /sys/class/power_supply/BAT1/current_now /sys/class/power_supply/BAT1/voltage_now | xargs | awk '{print \$1*\$2/1e12 \" W\"}\'"
alias battery='cat /sys/class/power_supply/BAT1/capacity'
# Override some default commands with more practical alternatives
# Note: default ls command is still accessible with '\ls'
alias ls='eza --icons=automatic --tree --level=1 --follow-symlinks --no-quotes'
alias lsa='ls -a'
alias lsl='eza --icons=automatic --long --header --group -M'
alias tree='ls --level=3'
# Keep default commands accessible
alias lsd='/usr/bin/ls --color'
# Random stuff
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
# Shell integrations
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)" # Override cd with zoxide
# pnpm
export PNPM_HOME="/home/guillm/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end