From 9c03aadf1f5d6f1e51cdcafde007acbadb507f74 Mon Sep 17 00:00:00 2001 From: mitsuo Date: Tue, 19 Oct 2021 23:21:36 -0500 Subject: Add gt (Go TitleCase) mapping in Vim - bashrc: Remove Conda shit (messed with my printer and scanner! (hplip(1)) - bash_aliases: - Add some Env. Var. like LINDO - Add mpv_nhk - Add youtube-dl_fast - Add "path shorcut" to java8 --- bash_aliases | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'bash_aliases') diff --git a/bash_aliases b/bash_aliases index a6cacab..1456c94 100644 --- a/bash_aliases +++ b/bash_aliases @@ -18,34 +18,48 @@ alias lla='ll -A' alias ls='ls --color=auto --group-directories-first --classify' #alias less='less -Ri' # make less's searches case insensitive and # colorized -LESS=Ri # TODO move to an appropiate place + +# TODO move to an appropiate place: +LESS="-i --RAW-CONTROL-CHARS"; +export LESS + +LINDOAPI_HOME=/home/mitsuo/code/LINDO/lindoapi +export LINDOAPI_HOME +LINDOAPI_LICENSE_FILE="$LINDOAPI_HOME/license/lndapi130.lic" +export LINDOAPI_LICENSE_FILE alias gcc='gcc -g -std=c99 -lm' alias ed='ed -p "* "' alias diff='diff -s' + +# Precautionary +alias rm='rm -I' # Promt before removing more than 3 files +alias mv='mv -i' # Promt before overwrite +alias cp='cp -i' # same + + # Other program's options # ====================================================================== + #alias feh='feh -g 640x480 -S filename' # opens files sorted by filename alias feh='feh -g 640x480 --auto-zoom --scale-down --on-last-slide hold' alias feht='feh -Tthumb_s' alias fehfx='feh -Tfs --slideshow-delay' alias fehfrx='feh -Tfs --recursive --slideshow-delay' alias units='units --verbose' - - -# Precautionary -# ====================================================================== -alias rm='rm -I' # Promt before removing more than 3 files -alias mv='mv -i' # Promt before overwrite -alias cp='cp -i' # same - +alias tty-clock='tty-clock -cs' # Quick tools -# ====================================================================== alias pdfreduce='gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook' alias youtube-dl_info='youtube-dl --get-filename --get-format --get-duration --get-description' -alias youtube-dl_fast='youtube-dl --format "best[height<=720]" -o '\''%(title)s.%(ext)s'\' +alias youtube-dl_fast='youtube-dl --format "best[height<=720][fps<=?30]" -o '\''%(title)s.%(ext)s'\' alias mpv_webcam='mpv av://v4l2:/dev/video0' # retrived from the Archwiki +alias mpv_nhk_720p='mpv "https://nhkwlive-ojp.akamaized.net/hls/live/2003459/nhkwlive-ojp-en/index_4M.m3u8"' +alias scan_dpto_europa='hp-scan --mode=color --device=hpaio:/net/OfficeJet_Pro_6970?ip=192.168.0.7' +#alias java8='~/code/openjdk8/jdk8u265-b01/bin/java' +#alias javac8='~/code/openjdk8/jdk8u265-b01/bin/javac' +alias inf265_jupyterlab='cd "/home/mitsuo/docs/courses/2021-1/INF265"; \ + jupyter lab' # Cosmetic -- cgit v1.2.3