From b5a99cc5c9fce4c657d1ada2c1893178a685baae Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 26 Apr 2022 17:25:47 +0200 Subject: update to fzf --- .config/zsh/alias.zsh | 6 +++--- .local/bin/dmbin | 6 ------ .local/bin/dmconf | 6 ------ .local/bin/dme | 6 ------ 4 files changed, 3 insertions(+), 21 deletions(-) delete mode 100755 .local/bin/dmbin delete mode 100755 .local/bin/dmconf delete mode 100755 .local/bin/dme diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index f194f9a..d4d4a7c 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -107,21 +107,21 @@ econf() { } eebin() { file=$(find "$HOME"/.local/bin -type f | fzf) + [ $? -ne 0 ] && return bsdsetsid emacsclient -c "$file" kill -9 "$(ps -p $$ -oppid=)" - exit } eeconf() { file=$(find "$HOME"/.config -type f | fzf) + [ $? -ne 0 ] && return bsdsetsid emacsclient -c "$file" kill -9 "$(ps -p $$ -oppid=)" - exit } ee() { file=$(find . -type f | fzf) + [ $? -ne 0 ] && return bsdsetsid emacsclient -c "$file" kill -9 "$(ps -p $$ -oppid=)" - exit } pa() { if [ -d $HOME/.local/packs ] && cd $HOME/.local/packs || return 1 diff --git a/.local/bin/dmbin b/.local/bin/dmbin deleted file mode 100755 index 2d2405b..0000000 --- a/.local/bin/dmbin +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -e - -file=$(find "$HOME"/.local/bin -type f | dmenu -i -l 20 -m 0) -bsdsetsid emacsclient -c "$file" -kill -9 "$(ps -p $$ -oppid=)" -exit diff --git a/.local/bin/dmconf b/.local/bin/dmconf deleted file mode 100755 index 931fe3d..0000000 --- a/.local/bin/dmconf +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -e - -file=$(find "$XDG_CONFIG_HOME" -type f | dmenu -i -l 30 -m 0) -bsdsetsid emacsclient -c "$file" -kill -9 "$(ps -p $$ -oppid=)" -exit diff --git a/.local/bin/dme b/.local/bin/dme deleted file mode 100755 index dce2484..0000000 --- a/.local/bin/dme +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -e - -file=$(find . -type f | dmenu -i -l 30 -m 0) -bsdsetsid emacsclient -c "$file" -kill -9 "$(ps -p $$ -oppid=)" -exit -- cgit v1.2.3