From a128d4931d11a8e14c52011946be125452616f1f Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 20 Mar 2022 18:44:01 +0100 Subject: [PATCH] Base: Install symlinks instead of aliasing rgrep and egrep --- Base/etc/shellrc | 2 -- Userland/Utilities/CMakeLists.txt | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Base/etc/shellrc b/Base/etc/shellrc index 2181bf0e89..b917ae3ae8 100644 --- a/Base/etc/shellrc +++ b/Base/etc/shellrc @@ -28,8 +28,6 @@ alias ue=UserspaceEmulator alias fe=FontEditor alias ss=Spreadsheet -alias rgrep="grep -r" -alias egrep="grep -E" alias ll='ls -l' if [ "$(id -u)" = "0" ] { diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt index afad68607d..17717ee152 100644 --- a/Userland/Utilities/CMakeLists.txt +++ b/Userland/Utilities/CMakeLists.txt @@ -51,6 +51,9 @@ foreach(CMD_SRC ${CMD_SOURCES}) endif() endforeach() +install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/egrep SYMBOLIC)") +install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)") + target_link_libraries(abench LibAudio LibMain LibCore) target_link_libraries(adjtime LibMain) target_link_libraries(allocate LibMain)