Based on https://stackoverflow.com/a/31632215/761771
const reduceOp = function(args, reducer){
args = Array.from(args);
args.pop(); // => options
var first = args.shift();
return args.reduce(reducer, first);
};
| #!/bin/bash | |
| # claude-pushover - Send Claude Code conversation summary to Pushover | |
| # push over https://pushover.net/ is a web API to make a push notification into iPhone App | |
| # Configuration | |
| SECURITY_MODE=0 # 0=off (detailed messages), 1=on (simple message only) | |
| MAX_CHARS=800 # Maximum message length for Pushover | |
| DEBUG_LOG="$HOME/claude-pushover-debug.log" # Debug log file | |
| # Function to extract message from hook JSON input | |
| get_hook_message() { | |
| # Check security mode first |
| " 主要leader | |
| let mapleader=' ' | |
| """ Plugins -------------------------------- | |
| set surround | |
| set multiple-cursors | |
| set commentary | |
| set argtextobj | |
| set easymotion |
Based on https://stackoverflow.com/a/31632215/761771
const reduceOp = function(args, reducer){
args = Array.from(args);
args.pop(); // => options
var first = args.shift();
return args.reduce(reducer, first);
};
| $ git branch -r --merged | | |
| awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | | |
| xargs git push origin --delete |