Skip to content

Instantly share code, notes, and snippets.

@lostvikx
Created February 7, 2023 13:12
Show Gist options
  • Save lostvikx/31b536b537f50e259dc104d7ebcf6d1f to your computer and use it in GitHub Desktop.
Save lostvikx/31b536b537f50e259dc104d7ebcf6d1f to your computer and use it in GitHub Desktop.
Personal list of bash aliases.
# Some useful bash aliases used by Vikram Negi
# navigation
alias ..="cd .."
# apt packages
alias sysup="sudo apt update && apt list --upgradable && sudo apt upgrade"
# flatpak packages
alias flatup="flatpak update"
# python
alias venv-init="python -m venv venv"
alias requirements-pip="pip freeze | sed -r 's/(\w+?)[==><]+.+/\1/' > requirements.txt"
# git
alias addup="git add ."
alias status="git status"
alias commit="git commit -m"
alias git-log="git log --oneline"
# disk info
alias disk-info="df -h"
# kill node process
alias kill-node="killall -9 node"
# cool stuff
alias vtop="vtop --theme wizard"
alias weather-report="curl -s https://wttr.in/"
# ffmpeg
# alias img2vid="ffmpeg -loop 1 -i $1 -c:v libx264 -t $2 -pix_fmt yuv420p -vf scale=640:480 out.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment