]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: instead of colorized aliases create shell scripts
authorOleg Broytman <phd@phdru.name>
Wed, 13 Jul 2016 16:09:32 +0000 (19:09 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 13 Jul 2016 16:10:48 +0000 (19:10 +0300)
.shellrc
bin/dir [new file with mode: 0755]
bin/dmesg [new file with mode: 0755]
bin/egrep [new file with mode: 0755]
bin/fgrep [new file with mode: 0755]
bin/grep [new file with mode: 0755]
bin/ls [new file with mode: 0755]
bin/vdir [new file with mode: 0755]

index 93b73a77c153fee4403da57d85c797249f986a5a..8389dd9f1c2cf552b4f23bcc9ac64a3e793c91f7 100644 (file)
--- 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 (executable)
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 (executable)
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 (executable)
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 (executable)
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 (executable)
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 (executable)
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 (executable)
index 0000000..7545123
--- /dev/null
+++ b/bin/vdir
@@ -0,0 +1,2 @@
+#! /bin/sh
+exec /bin/vdir --color=auto "$@"