This file contains hidden or 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
#!/bin/bash | |
# based on the [p7m software](https://github.com/eniocarboni/p7m) by @eniocarboni | |
# Be sure to clone it and include it in your `~/bin/` | |
# This script runs `p7m -x` on each selected .p7m file | |
echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | while IFS= read -r file; do | |
# Check if the file ends with .p7m (case-insensitive) | |
if [[ "${file,,}" == *.p7m ]]; then | |
p7m -x "$file" |
This file contains hidden or 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
git config --global alias.hist-c '!git cat-file --batch-all-objects --batch-check | cut -d " " -f 1 | xargs git hist --all' |