Last active
February 17, 2025 18:40
-
-
Save bgoewert/1df4929bc1b733dbcc11caa6dce5ff36 to your computer and use it in GitHub Desktop.
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
#if [ -f ~/.aliases ] ; then | |
# . ~/.aliases | |
#fi | |
alias update='sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y; sudo snap refresh; flatpak update -y;' | |
alias filedatetime='date +"%Y-%m-%dT%H%M%S%z"' | |
alias lst='ls -tlh' | |
alias ds='find ${1:-.} -type f -exec ls -lnq {} \+ | awk '\''BEGIN{sum=0} {sum+=$5} END{u="+Ki+Mi+Gi+Ti+Pi+Ei";split(u,unit,"+");v=sum;for(i=1;i<7;i++){if(v<1024)break;v/=1024}printf("%.3f %sB\n",v,unit[i])}'\''' | |
alias mkvenv='python3 -m venv .venv && source .venv/bin/activate && which python' | |
alias envenv='source .venv/bin/activate' | |
alias disvenv='deactivate' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment