Last active
January 23, 2026 14:56
-
-
Save gafda/bd5e32765a2f1d328f3296203bfd683f to your computer and use it in GitHub Desktop.
.my_extras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Made for Ubuntu systems | |
| DOTNET_CLI_TELEMETRY_OPTOUT=1 | |
| DOTNET_ROOT=$HOME/.dotnet | |
| PATH=$PATH:~/workspace/.tools/:/root/.local/bin:~/.local/bin/:$DOTNET_ROOT:$DOTNET_ROOT/tools:~/.nvm/nvm.sh | |
| # Oh-my-Posh init. | |
| eval "$(oh-my-posh init bash --config $HOME/workspace/.poshthemes/powerlevel10k_rainbow.omp.json)" | |
| # General aliases | |
| alias lt='ls --human-readable --size -1 -S --classify' | |
| # Copy with progress bar | |
| alias cpv='rsync -ah --info=progress2' | |
| # Other updates | |
| alias update-ohmyposh='curl -s https://ohmyposh.dev/install.sh | sudo bash -s && sudo rsync -a --chown=$USER /root/.cache/oh-my-posh/themes/ ~/workspace/.poshthemes/' | |
| alias update='sudo nala update && sudo nala upgrade -y && sudo nala autoremove' | |
| alias lzd='lazydocker' | |
| alias lzg='lazygit' | |
| alias t='tree -dh --du -L 2' | |
| alias dp='docker system prune -f && docker volume prune -f' | |
| alias lh='ll -loah' | |
| t2() { | |
| local n="${1:-2}" # Default to 2 if no argument is given | |
| sudo find . -type d | awk -F "/" "NF <= $n" | while read -r dir; do sudo du -sh "$dir"; done | sort -k2 | |
| } | |
| # WSL2 - Windows Direct | |
| alias g='git.exe' | |
| alias k='kubectl.exe' | |
| alias kubectx='kubectx.exe' | |
| alias kubens='kubens.exe' | |
| alias k9s='k9s.exe' | |
| alias gui='gitui.exe' | |
| # Extras | |
| alias cd..='cd ..' | |
| ## Drive usage (like df) | |
| alias duf='duf -theme dark' | |
| ## List all Hardware in system | |
| alias lscpu='sudo lshw -C cpu' | |
| alias lsgpu='sudo lshw -C display' | |
| alias lsram='sudo lshw -C memory' | |
| alias lsnet='sudo lshw -C network' | |
| alias lshdd='sudo lshw -C disk' | |
| ## Latency and Package loss | |
| alias mtrace='mtr -t -m 30' | |
| ## File manager | |
| alias ranger='. ranger -c' | |
| ## PbCopy / PbPaste | |
| alias pbcopy='xsel --input --clipboard' | |
| alias pbpaste='xsel --output --clipboard' | |
| ## Python .venv removal | |
| alias rmvenv='find . -name ".venv" -type d -exec sudo rm -rf {} +' | |
| ## Safe Cleanup | |
| alias sysclean='echo "Cleaning user caches (excluding oh-my-posh)..."; find ~/.cache -mindepth 1 -not -name "oh-my-posh" -exec rm -rf {} +; echo "Cleaning system files (requires password)..."; sudo apt autoclean && sudo apt autoremove -y; echo "System cleanup complete."' | |
| # AI | |
| ## Fabric | |
| alias fb='~/workspace/tools/fabric/fabric' | |
| ## Copilot | |
| alias c?='copilot' | |
| ## Gemini | |
| alias g?='gemini' | |
| ## OpenCode | |
| alias o?='opencode' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment