Skip to content

Instantly share code, notes, and snippets.

@aanari
Created October 18, 2022 19:36
Show Gist options
  • Save aanari/74847ba27706b1e0a1486573690ca42d to your computer and use it in GitHub Desktop.
Save aanari/74847ba27706b1e0a1486573690ca42d to your computer and use it in GitHub Desktop.
Browsh Helper Script for Neomutt
#!/bin/bash
pkill -u "$(whoami)" -SIGINT firefox
pkill -u "$(whoami)" -SIGINT browsh
FILE=$(echo "$1" | sed -e 's/http:\/\/localhost:20015\/file:\/\///g')
cp "$FILE" "$HOME/.neomutt/tmp"
#HOMEDIR=$(echo $HOME | sed -e 's/\//\\\//g')
#PATTERN="s/file:\/\/$HOMEDIR\///g"
#URL=$(echo $1 | sed -e $PATTERN)
#echo $URL
browsh --startup-url http://localhost:20015/.neomutt/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment