dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c03bdba910d813cd7d5766a146787232b962c997
parent 269c3d31bf79bba9bce11e3521d27ddbb3d9a97a
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sun, 15 Dec 2019 00:21:34 +0100

Add dmenu history file

Show shell histroy in dmenu

Diffstat:
Abin/dmenu_hist | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/dmenu_hist b/bin/dmenu_hist @@ -0,0 +1,5 @@ +#!/bin/bash + +HISTFILE=~/.zhistory +set -o history +`history | sort -nr | dmenu -p History: -l 40 -fn "Sans:size=11" | sed 's/^\s*[0-9]\+\s*//'`