From c1f5176e25c6fdf91543e46fc3149e27ed61785a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 15:07:23 +0100 Subject: [PATCH] em,g --- shell/alias/emacs.sh | 8 ++++---- shell/alias/grep.sh | 13 +++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/shell/alias/emacs.sh b/shell/alias/emacs.sh index 7984a4a..8bd77fc 100644 --- a/shell/alias/emacs.sh +++ b/shell/alias/emacs.sh @@ -1,4 +1,4 @@ -# short -alias em="\ -emacs \ -" +em() { + emacs \ + "${@}" +} diff --git a/shell/alias/grep.sh b/shell/alias/grep.sh index 73179dd..ab8e396 100644 --- a/shell/alias/grep.sh +++ b/shell/alias/grep.sh @@ -1,7 +1,8 @@ # grep from current directory with regex -alias g="\ -grep \ ---directories \"recurse\" \ ---line-number \ ---regexp \ -" +g() { + grep \ + --directories "recurse" \ + --line-number \ + --regexp \ + "${@}" +}