From f75b279d733e5f15eb8b9bc8e762592f49799f71 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 26 Apr 2022 13:57:01 +0200 Subject: udpate --- .config/env | 2 +- .config/zsh/alias.zsh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.config/env b/.config/env index c99c07f..eb4ea63 100644 --- a/.config/env +++ b/.config/env @@ -73,7 +73,7 @@ export CCACHE_LOGFILE='/var/log/ccache.log' # Apps config export FZF_DEFAULT_COMMAND='ag -g "" --ignore dotfiles-bsd' -export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border --tabstop=4' +export FZF_DEFAULT_OPTS='--height 60% --layout=reverse --border=left --tabstop=4' export LESS="-R" export LESSHISTFILE='-' export MANPAGER="less -R -M +Gg" diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 20dc114..6873902 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -105,6 +105,24 @@ econf() { $VISUAL $sc cd $p } +eebin() { + file=$(find "$HOME"/.local/bin -type f | fzf) + bsdsetsid emacsclient -c "$file" + kill -9 "$(ps -p $$ -oppid=)" + exit +} +eeconf() { + file=$(find "$HOME"/.config -type f | fzf) + bsdsetsid emacsclient -c "$file" + kill -9 "$(ps -p $$ -oppid=)" + exit +} +ee() { + file=$(find . -type f | fzf) + bsdsetsid emacsclient -c "$file" + kill -9 "$(ps -p $$ -oppid=)" + exit +} pa() { if [ -d $HOME/.local/packs ] && cd $HOME/.local/packs || return 1 dir=$(\ls $HOME/.local/packs | fzf) -- cgit v1.2.3