Skip to content

Instantly share code, notes, and snippets.

@SC-One
Created March 15, 2023 06:31
Show Gist options
  • Save SC-One/c671d0207536943975242a03ff90ec6d to your computer and use it in GitHub Desktop.
Save SC-One/c671d0207536943975242a03ff90ec6d to your computer and use it in GitHub Desktop.
My favorite aliases in bash (usefull in ubuntu's terminal)
alias gitstart='eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
'
alias copy='xclip -selection clipboard'
# alias bjson='python -m json.tool' # beautify json
bjsonStr(){
echo "$1" | python3 -m json.tool
}
bjsonFile(){
python3 -m json.tool "$1"
}
bjsonDl(){
curl "$1" | python3 -m json.tool
}
alias vlgFull=valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --log-file=valgrind-out.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment