From b6dcf981deebb58210f0f3d9b89b5aebd96fcba1 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 23 Jun 2021 20:18:14 +0200 Subject: [PATCH] rg --- .bash_aliases | 5 +++++ .bash_functions | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .bash_functions diff --git a/.bash_aliases b/.bash_aliases index 08151a9..6142252 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,3 +1,6 @@ +# binde Funktionen ein +source ~/.bash_functions + # tmux alias tmuxa="tmux a -t " alias tmuxn="tmux new -s " @@ -47,3 +50,5 @@ alias dcr="docker-compose down && docker-compose up -d" alias mv="mv -i " alias cp="cp -i " alias rm="rm -i " +# rg +alias rg="rg -i" diff --git a/.bash_functions b/.bash_functions new file mode 100644 index 0000000..821598d --- /dev/null +++ b/.bash_functions @@ -0,0 +1,4 @@ +# rg, gibt nur Dateipfade aus, sucht nur nach Dateinamen +function rgf { + rg --files -g "*$2*" +}