minor additions
This commit is contained in:
parent
0ba1f4b603
commit
ec4e4185e4
6
scripts/dmenupass
Executable file
6
scripts/dmenupass
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
|
||||||
|
# password prompt if needed.
|
||||||
|
|
||||||
|
dmenu -fn Monospace-18 -P -p "$1" <&- && echo
|
||||||
13
scripts/tmux-windowiser
Executable file
13
scripts/tmux-windowiser
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
branch_name=$(basename $1)
|
||||||
|
session_name=$(tmux display-message -p "#S")
|
||||||
|
clean_name=$(echo $branch_name | tr "./" "__")
|
||||||
|
target="$session_name:$clean_name"
|
||||||
|
|
||||||
|
if ! tmux has-session -t $target 2> /dev/null; then
|
||||||
|
tmux neww -dn $clean_name
|
||||||
|
fi
|
||||||
|
|
||||||
|
shift
|
||||||
|
tmux send-keys -t $target "$*" Enter
|
||||||
Reference in New Issue
Block a user