Browse Source

Base: Install symlinks instead of aliasing rgrep and egrep

Tim Schumacher 3 years ago
parent
commit
a128d4931d
2 changed files with 3 additions and 2 deletions
  1. 0 2
      Base/etc/shellrc
  2. 3 0
      Userland/Utilities/CMakeLists.txt

+ 0 - 2
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" ] {

+ 3 - 0
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)