done
}
+function ua () {
+ while [[ "$1" ]]; do
+
+ case "$1" in
+
+ *.tgz|*.tar.gz)
+ tar zxvf "$1"
+ ;;
+
+ *.rar)
+ unrar x "$1"
+ ;;
+
+ *.zip)
+ unzip "$1"
+ ;;
+
+ *)
+ echo "Unknown file extension $1"
+ ;;
+ esac
+
+ shift
+
+ done
+}
+
# Create a dir and cd there
function mcd () {
# git clone http://fleuret.org/git/selector/
function selector-history () {
- selector --bash -c 7,4,0,3 -q <(history)
+ selector --bash -u -c 7,4,0,3 -q <(history)
}
# M-r puts the selected history line in place of the current one