blob: 1456c94de3f541a28a93b8ea2c266fc3e349023e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Shortcuts
# ======================================================================
alias aliases='vim ~/.bash_aliases && source ~/.bash_aliases'
alias evrc='vim ~/.vim/vimrc'
alias ebrc='vim ~/.bashrc && source ~/.bashrc'
# Common program's options
# ======================================================================
# coretools
alias diff2='diff --color=always -y'
alias dir='dir --color=auto'
alias grep='grep --color=auto -i' # color case-insensitive
alias la='ls -A'
alias ll='ls -l -h'
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
# 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'
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][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
# ======================================================================
alias :q='cowsay -d "this isn'\''t Vim"' # To scape single quotes in single
# quoted string first finish opened
# string and add the scaped quote
# (\').
alias :w="cowsay -b \"this isn't Vim\""
alias miola='cowsay -e ^^ "te extraño, mi galletita"'
alias miola2='cowsay -e ^^ "🌊Nandita 💃 bonita 🌊"'
|