.bashrc erweitert um fzf
This commit is contained in:
20
.bashrc
20
.bashrc
@@ -6,7 +6,7 @@
|
|||||||
# /_/ \_\_|
|
# /_/ \_\_|
|
||||||
#
|
#
|
||||||
# Beschreibung: .bashrc
|
# Beschreibung: .bashrc
|
||||||
# letzte Änderung: 21.06.2025
|
# letzte Änderung: 10.01.2026
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
@@ -79,6 +79,24 @@ PS1='\[\033[1;34m\]\w\[\033[0m\] \[\033[0;32m\]\[\033[0m\] '
|
|||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
eval "$(zoxide 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
|
source $HOME/.profile
|
||||||
|
|
||||||
neofetch
|
neofetch
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#+title: Dotfiles
|
#+title: Dotfiles
|
||||||
#+AUTHOR: Manuel Prinz
|
#+AUTHOR: Manuel Prinz
|
||||||
#+date: 25.12.2025
|
#+date: 10.01.2026
|
||||||
|
|
||||||
Hier die Sammlung meiner persönlichen =Dotfiles=.
|
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.
|
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
|
* Changelog
|
||||||
|
+ 10.01.2026: Anpassungen =.bashrc=
|
||||||
+ 09.01.2026: btop zugefügt
|
+ 09.01.2026: btop zugefügt
|
||||||
+ 25.12.2025: vifm und yazi zugefügt
|
+ 25.12.2025: vifm und yazi zugefügt
|
||||||
+ 25.12.2025: alacritty, Doom Emacs und vim zugefügt
|
+ 25.12.2025: alacritty, Doom Emacs und vim zugefügt
|
||||||
|
|||||||
Reference in New Issue
Block a user