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 \ + "${@}" +}