Created
October 18, 2022 19:36
-
-
Save aanari/74847ba27706b1e0a1486573690ca42d to your computer and use it in GitHub Desktop.
Browsh Helper Script for Neomutt
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
#!/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