From 511ca677ef6db9033196c8b1337f6f9f91e3188c Mon Sep 17 00:00:00 2001 From: q3aql Date: Fri, 23 Apr 2021 22:39:51 +0200 Subject: [PATCH] Add alias for Cygwin drives --- cygwin/bin/cygwin-alias.sh | 28 ++++++++++++++++++++++++++++ cygwin/prompt/.bashrc | 29 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/cygwin/bin/cygwin-alias.sh b/cygwin/bin/cygwin-alias.sh index 6d4c3ac..6ffa9e9 100755 --- a/cygwin/bin/cygwin-alias.sh +++ b/cygwin/bin/cygwin-alias.sh @@ -41,3 +41,31 @@ alias wc="/usr/bin/wc" alias x264="/usr/bin/x264" alias zenity="/usr/bin/zenity" alias all-commands='ls /bin | grep ".exe" | cut -d "." -f 1' + +# List of alias for drives: +alias A:="/cygdrive/a" +alias B:="/cygdrive/b" +alias C:="/cygdrive/c" +alias D:="/cygdrive/d" +alias E:="/cygdrive/e" +alias F:="/cygdrive/f" +alias G:="/cygdrive/g" +alias H:="/cygdrive/h" +alias I:="/cygdrive/i" +alias J:="/cygdrive/j" +alias K:="/cygdrive/k" +alias L:="/cygdrive/l" +alias M:="/cygdrive/m" +alias N:="/cygdrive/n" +alias O:="/cygdrive/o" +alias P:="/cygdrive/p" +alias Q:="/cygdrive/q" +alias R:="/cygdrive/r" +alias S:="/cygdrive/s" +alias T:="/cygdrive/t" +alias U:="/cygdrive/u" +alias V:="/cygdrive/v" +alias W:="/cygdrive/w" +alias X:="/cygdrive/x" +alias Y:="/cygdrive/y" +alias Z:="/cygdrive/z" diff --git a/cygwin/prompt/.bashrc b/cygwin/prompt/.bashrc index b9316df..b364fe6 100644 --- a/cygwin/prompt/.bashrc +++ b/cygwin/prompt/.bashrc @@ -153,6 +153,35 @@ alias x264="/usr/bin/x264" alias zenity="/usr/bin/zenity" alias all-commands='ls /bin | grep ".exe" | cut -d "." -f 1' +# List of alias for drives: +alias A:="/cygdrive/a" +alias B:="/cygdrive/b" +alias C:="/cygdrive/c" +alias D:="/cygdrive/d" +alias E:="/cygdrive/e" +alias F:="/cygdrive/f" +alias G:="/cygdrive/g" +alias H:="/cygdrive/h" +alias I:="/cygdrive/i" +alias J:="/cygdrive/j" +alias K:="/cygdrive/k" +alias L:="/cygdrive/l" +alias M:="/cygdrive/m" +alias N:="/cygdrive/n" +alias O:="/cygdrive/o" +alias P:="/cygdrive/p" +alias Q:="/cygdrive/q" +alias R:="/cygdrive/r" +alias S:="/cygdrive/s" +alias T:="/cygdrive/t" +alias U:="/cygdrive/u" +alias V:="/cygdrive/v" +alias W:="/cygdrive/w" +alias X:="/cygdrive/x" +alias Y:="/cygdrive/y" +alias Z:="/cygdrive/z" + + # Show menu of ks-tools echo "" echo " #####################################"