Skip to content

Instantly share code, notes, and snippets.

View demonkoryu's full-sized avatar
🤔
...

Tobias Eckardt demonkoryu

🤔
...
View GitHub Profile
@demonkoryu
demonkoryu / bash_colors.sh
Created February 24, 2022 22:36
Bash colored echo
#!/bin/bash
# if terminal, use colors
if [ -t 1 ]; then
function tp {
tput "$@"
}
# else, no colored output to prevent messing up log files
else
function tp {
echo ""
@demonkoryu
demonkoryu / find-unchanged-tracked-files.sh
Created January 28, 2022 16:08
Git: Find unchanged tracked files in directory
diff <(git diff --name-only) <(git ls-files -- sub/dir) | grep "^>" | cut -b3-