diff options
| -rw-r--r-- | config/bash/bash_aliases | 20 | ||||
| -rw-r--r-- | config/bash/bashrc | 18 |
2 files changed, 7 insertions, 31 deletions
diff --git a/config/bash/bash_aliases b/config/bash/bash_aliases index 899f80f..46051cf 100644 --- a/config/bash/bash_aliases +++ b/config/bash/bash_aliases @@ -1,6 +1,5 @@ # Bash aliases. # -# Previously set environment variables work. # Aliases are recursive (I.e., an alias inside an alias works). @@ -9,12 +8,10 @@ alias e="$EDITOR" alias aliases="$EDITOR ~/.bash_aliases && source ~/.bash_aliases" -alias evrc='vim ~/.vim/vimrc' -alias ebrc="$EDITOR ~/.bashrc && source ~/.bashrc" -#alias jupyter-lab='jupyter-lab . &> /dev/null &' # Redirect stdout and stderr # wtf error with Code-OSS # Ref.: https://stackoverflow.com/a/73317738/7498073 alias code="code --enable-proposed-api ms-toolsai.jupyter" +alias echopath='echo "$PATH" | tr ":" "\n"' # Common program's options @@ -51,11 +48,6 @@ 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' @@ -65,17 +57,9 @@ alias youtube-dl_info='youtube-dl --get-filename --get-format --get-duration --g 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 :q="cowsay -d \"this isn't Vim\"" alias :w="cowsay -b \"this isn't Vim\"" diff --git a/config/bash/bashrc b/config/bash/bashrc index 4d5178f..e36f61b 100644 --- a/config/bash/bashrc +++ b/config/bash/bashrc @@ -10,6 +10,7 @@ # TROUBLESHOOTING # =============== +export TERMINAL=st export EDITOR=nvim export VISUAL=nvim export TERM=xterm-256color # Required for AWS VPS work good when SSHing @@ -64,11 +65,6 @@ stty -ixon # Prompt # ------ -# - Basic [user@host $pwd]$ -#PS1='[\u@\h \W]\$ ' -# - Blue timestamp and italic green pwd -#PS1='\[\033[34m\]|\D{%H:%M:%S}| \[\033[3;32m\][\w]\[\033[00m\]\n\$ ' - # - user@host pwd (git prompt) # Ref.: https://stackoverflow.com/a/15398153/7498073 source ~/.git-prompt.sh @@ -100,12 +96,11 @@ export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" export XDG_STATE_HOME="$HOME/.local/state" -export LC_COLLATE=C - +# This is already in .xinitrc # fcitx5 (input method) -export GTK_IM_MODULE=fcitx -export QT_IM_MODULE=fcitx -export XMODIFIERS=@im=fcitx +#export GTK_IM_MODULE=fcitx +#export QT_IM_MODULE=fcitx +#export XMODIFIERS=@im=fcitx # less LESS="-i " # ignore case @@ -123,9 +118,6 @@ eval "$(dircolors)" # tldr [ -f /usr/bin/tldr ] && export TLDR_CONFIG_DIR="$XDG_CONFIG_HOME" -# gpg -#export GPG_TTY=$(tty) - # nvm #source /usr/share/nvm/init-nvm.sh |
