Skip to content

Instantly share code, notes, and snippets.

View nimaipatel's full-sized avatar
🦬

nimaipatel

🦬
View GitHub Profile
@nimaipatel
nimaipatel / gist:ba40dc853ad82f47fbf80115d471f2c6
Created November 23, 2023 22:14
Windows.Terminal settings.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
set bind-tty-special-chars off
set editing-mode vi
set show-mode-in-prompt on
set vi-cmd-mode-string "\1\e[2 q\2"
set vi-ins-mode-string "\1\e[6 q\2"
set keymap emacs
"\ee": vi-editing-mode
@nimaipatel
nimaipatel / st-copyout.diff
Created January 27, 2021 16:36
Patch for the simple terminal to copy the output of an interactive shell command with alt + o (requires the external pipe patch)
diff --git a/Makefile b/Makefile
index 470ac86..a836907 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,9 @@ dist: clean
install: st
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f st $(DESTDIR)$(PREFIX)/bin
+ cp -f st-copyout $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/st