Skip to content

Instantly share code, notes, and snippets.

@hr1sh1kesh
hr1sh1kesh / ask.sh
Last active March 29, 2018 07:28
Bash General-Purpose Yes/No Prompt Function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# https://djm.me/ask
local prompt default reply
while true; do
@hr1sh1kesh
hr1sh1kesh / tmux-cheatsheet.markdown
Created March 7, 2018 09:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname