summaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_aliases5
-rw-r--r--bash/bashrc42
2 files changed, 30 insertions, 17 deletions
diff --git a/bash/bash_aliases b/bash/bash_aliases
index d75e54d..b3dcf78 100644
--- a/bash/bash_aliases
+++ b/bash/bash_aliases
@@ -11,7 +11,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
+#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"
# Common program's options
diff --git a/bash/bashrc b/bash/bashrc
index 03e1d31..9306396 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -43,6 +43,13 @@ fi
# Don't forget to install bash-completion
+# Disable CTRL+S and CTRL+Q keybindings
+# (used to pause and resume output to terminal)
+# See: https://unix.stackexchange.com/a/137846/347754
+# https://unix.stackexchange.com/a/73499/347754
+stty -ixon
+
+
# Prompt
# ------
@@ -60,9 +67,16 @@ PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1
# Environment
# ===========
+# FIXME: This is executed twice. One just after login (first bash) in tty. And
+# again then again in the terminal emulator.
export EDITOR=nvim
-export PATH="$HOME/.local/bin:$PATH"
-export PATH="$HOME/mahcode/bin:$PATH"
+PATH="$HOME/.local/bin:$PATH"
+PATH="$HOME/mahcode/bin:$PATH"
+PATH="$HOME/code/tex-live-native/build/bin/x86_64-linux:$PATH"
+export PATH
+
+export MANPATH="$HOME/code/tex-live-native/build/texmf-dist/doc/man:$MANPATH"
+export INFOPATH="$HOME/code/tex-live-native/build/texmf-dist/doc/man:$INFOPATH"
# XDG = Cross-Desktop Group
# For more info see https://wiki.archlinux.org/index.php/XDG_Base_Directory
@@ -73,12 +87,21 @@ export XDG_STATE_HOME="$HOME/.local/state"
export LC_COLLATE=C
+# fcitx5 (input method)
+export GTK_IM_MODULE=fcitx
+export QT_IM_MODULE=fcitx
+export XMODIFIERS=@im=fcitx
+
# less
LESS="-i " # ignore case
LESS+="-S " # don't chop long lines
LESS+="--RAW-CONTROL-CHARS"
export LESS
+# better `ls` (and other programs like `tree`) colors
+eval "$(dircolors)"
+
+
# Extra programs
# --------------
@@ -88,9 +111,6 @@ export LESS
# gpg
#export GPG_TTY=$(tty)
-# tmux
-#export TERM="xterm-256color"
-
# nvm
#source /usr/share/nvm/init-nvm.sh
@@ -99,16 +119,6 @@ if [ -f /usr/bin/pandoc ]; then
eval "$(pandoc --bash-completion)"
fi
-# Homebrew (linuxbrew)
-if [ -f /usr/bin/brew ]; then
- # for elf executables
- export PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
- # for manpages
- export MANPATH="/home/linuxbrew/.linuxbrew/share/man:${MANPATH}"
- # for info pages
- export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH}"
-fi
-
# Node.js
#export NODE_PATH=~/code/nodejs/node-v16.15.1-linux-x64/lib/node_modules
@@ -125,7 +135,7 @@ fi
# Fun
-# ===
+# ================
# Greeting or salute
if [ -f /usr/games/cowsay ] || [ -f /usr/bin/cowsay ]; then