env bash
This commit is contained in:
parent
7698abb0f9
commit
938af8f7eb
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#get image resolution
|
#get image resolution
|
||||||
resolution=$(identify $1 | awk '{print $3}')
|
resolution=$(identify $1 | awk '{print $3}')
|
||||||
IFS='x' # x is set as delimiter
|
IFS='x' # x is set as delimiter
|
||||||
read -ra ADDR <<< "$resolution"
|
read -ra ADDR <<< "$resolution"
|
||||||
width=${ADDR[0]}
|
width=${ADDR[0]}
|
||||||
height=${ADDR[1]}
|
height=${ADDR[1]}
|
||||||
|
|
||||||
|
2
bin/mw
2
bin/mw
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
|
command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
|
||||||
[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
|
[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
|
||||||
[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
|
[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
# Helps open a file with xdg-open from mutt in a external program without weird side effects.
|
# Helps open a file with xdg-open from mutt in a external program without weird side effects.
|
||||||
[ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open"
|
[ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open"
|
||||||
mkdir -p "/tmp/$USER-mutt-tmp"
|
mkdir -p "/tmp/$USER-mutt-tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user