From 69c9ea1adf961dfc9a5c6cf470668807701cab3e Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Sun, 4 Feb 2024 16:53:13 +0530 Subject: add nvim config --- .local/bin/bell | 3 +++ .local/bin/set-title | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 .local/bin/bell create mode 100755 .local/bin/set-title (limited to '.local/bin') diff --git a/.local/bin/bell b/.local/bin/bell new file mode 100755 index 0000000..7d6b529 --- /dev/null +++ b/.local/bin/bell @@ -0,0 +1,3 @@ +#/bin/sh -- + +tput bel diff --git a/.local/bin/set-title b/.local/bin/set-title new file mode 100755 index 0000000..34caa8a --- /dev/null +++ b/.local/bin/set-title @@ -0,0 +1,30 @@ +#!/bin/sh + +exec < /dev/tty + +if tput hs +then + tsl="$(tput tsl)" + fsl="$(tput fsl)" + hs=1 +else + case ${TERM} in + xterm*|rxvt*) + tsl="$(printf "\x1b]0;")" + fsl="$(printf "\a")" + hs=1 + ;; + screen*) + tsl="$(printf "\x1b_")" + fsl="$(printf "\x1b\\")" + hs=1 + ;; + esac +fi + +if test "$hs" = 1 +then + printf "%s" "$tsl" + printf "%s" "$@" + printf "%s" "$fsl" +fi -- cgit v1.2.3-70-g09d2