This file contains 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
#!/usr/bin/env bash | |
# green if user, red if root | |
if [ "$EUID" -ne 0 ]; then | |
PS1='\[\e[0;92m\]\u@\H\[\e[0m\]:\[\e[0;94m\]\w\[\e[0m\]$ ' | |
else | |
PS1='\[\e[0;91m\]\u@\H\[\e[0m\]:\[\e[0;94m\]\w\[\e[0m\]# ' | |
fi |
This file contains 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
#!/usr/bin/env bash | |
# md5ls | |
# Output a sorted list of md5sums for all files in the current working directory | |
alias md5ls="find . -type f -exec md5sum {} + | LC_ALL=C sort -k2" | |
# Generates a consistent manifest which can be used to verify that two | |
# directories contain identical contents, or diagnose any differences | |
# |