From ae2721cafc57390705f49c6919a8687ea2fcc39d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 13 Jul 2016 19:09:32 +0300 Subject: [PATCH] .shellrc: instead of colorized aliases create shell scripts --- .shellrc | 5 ++++- bin/dir | 2 ++ bin/dmesg | 2 ++ bin/egrep | 2 ++ bin/fgrep | 2 ++ bin/grep | 2 ++ bin/ls | 2 ++ bin/vdir | 2 ++ 8 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 bin/dir create mode 100755 bin/dmesg create mode 100755 bin/egrep create mode 100755 bin/fgrep create mode 100755 bin/grep create mode 100755 bin/ls create mode 100755 bin/vdir diff --git a/.shellrc b/.shellrc index 93b73a7..8389dd9 100644 --- a/.shellrc +++ b/.shellrc @@ -31,13 +31,16 @@ shopt -s checkwinsize # # I don't like these aliases - they work only in command line # # but not in scripts I run from command line. # # Color parameters must be passed via environment. +# # So instead I put them in shell scripts in ~/bin. # alias ls='ls --color=auto' # alias dir='dir --color=auto' # alias vdir='vdir --color=auto' - +# # alias grep='grep --color=auto' # alias fgrep='fgrep --color=auto' # alias egrep='egrep --color=auto' +# +# alias dmesg='dmesg --human' #fi diff --git a/bin/dir b/bin/dir new file mode 100755 index 0000000..d5ab816 --- /dev/null +++ b/bin/dir @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/dir --color=auto "$@" diff --git a/bin/dmesg b/bin/dmesg new file mode 100755 index 0000000..4ccc45d --- /dev/null +++ b/bin/dmesg @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/dmesg --human "$@" diff --git a/bin/egrep b/bin/egrep new file mode 100755 index 0000000..888dcf7 --- /dev/null +++ b/bin/egrep @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/egrep --color=auto "$@" diff --git a/bin/fgrep b/bin/fgrep new file mode 100755 index 0000000..a27bbc6 --- /dev/null +++ b/bin/fgrep @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/fgrep --color=auto "$@" diff --git a/bin/grep b/bin/grep new file mode 100755 index 0000000..22e1c43 --- /dev/null +++ b/bin/grep @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/grep --color=auto "$@" diff --git a/bin/ls b/bin/ls new file mode 100755 index 0000000..ed3dd70 --- /dev/null +++ b/bin/ls @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/ls --color=auto "$@" diff --git a/bin/vdir b/bin/vdir new file mode 100755 index 0000000..7545123 --- /dev/null +++ b/bin/vdir @@ -0,0 +1,2 @@ +#! /bin/sh +exec /bin/vdir --color=auto "$@" -- 2.39.5