From: Oleg Broytman Date: Wed, 13 Jul 2016 16:09:32 +0000 (+0300) Subject: .shellrc: instead of colorized aliases create shell scripts X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=ae2721cafc57390705f49c6919a8687ea2fcc39d .shellrc: instead of colorized aliases create shell scripts --- 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 "$@"