Skip to content

Instantly share code, notes, and snippets.

@bgoewert
Last active February 17, 2025 18:40
Show Gist options
  • Save bgoewert/1df4929bc1b733dbcc11caa6dce5ff36 to your computer and use it in GitHub Desktop.
Save bgoewert/1df4929bc1b733dbcc11caa6dce5ff36 to your computer and use it in GitHub Desktop.
#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