From f3871188325ccc8b2a582f9c8f6075fc527bcfe4 Mon Sep 17 00:00:00 2001 From: proenz Date: Sat, 10 Jan 2026 10:16:35 +0100 Subject: [PATCH] .bashrc erweitert um fzf --- .bashrc | 20 +++++++++++++++++++- README.org | 3 ++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 1457202..e02cbed 100644 --- a/.bashrc +++ b/.bashrc @@ -6,7 +6,7 @@ # /_/ \_\_| # # Beschreibung: .bashrc -# letzte Änderung: 21.06.2025 +# letzte Änderung: 10.01.2026 # If not running interactively, don't do anything [[ $- != *i* ]] && return @@ -79,6 +79,24 @@ PS1='\[\033[1;34m\]\w\[\033[0m\] \[\033[0;32m\]\[\033[0m\] ' eval "$(starship init bash)" eval "$(zoxide init bash)" +# Set up fzf key bindings and fuzzy completion +# CTRL-Y to copy the command into clipboard using pbcopy +export FZF_CTRL_R_OPTS=" + --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort' + --color header:italic + --header 'Press CTRL-Y to copy command into clipboard'" +# Preview file content using bat (https://github.com/sharkdp/bat) +export FZF_CTRL_T_OPTS=" + --walker-skip .git,node_modules,target + --preview 'bat -n --color=always {}' + --bind 'ctrl-/:change-preview-window(down|hidden|)'" +# Print tree structure in the preview window +export FZF_ALT_C_OPTS=" + --walker-skip .git,node_modules,target + --preview 'tree -C {}'" + +eval "$(fzf --bash)" + source $HOME/.profile neofetch diff --git a/README.org b/README.org index 8b76be4..69438e1 100644 --- a/README.org +++ b/README.org @@ -1,6 +1,6 @@ #+title: Dotfiles #+AUTHOR: Manuel Prinz -#+date: 25.12.2025 +#+date: 10.01.2026 Hier die Sammlung meiner persönlichen =Dotfiles=. @@ -8,6 +8,7 @@ Hier die Sammlung meiner persönlichen =Dotfiles=. Aktuell sammel ich hier erstmal alle Dotfiles, die ich global für meine PCs nutzen kann. Also nur diese für Anwendungen und nicht die für verschiedene Window-Manager. Das soll aber später auch noch folgen. * Changelog ++ 10.01.2026: Anpassungen =.bashrc= + 09.01.2026: btop zugefügt + 25.12.2025: vifm und yazi zugefügt + 25.12.2025: alacritty, Doom Emacs und vim zugefügt