summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-08-27 18:53:13 -0500
committerMitsuo Tokumori <[email protected]>2023-08-27 18:53:13 -0500
commit5a37b97a2473e3fdbe918df1b811b13c91616b01 (patch)
treebb6775b6537e60d2d47b3b2c065a0ec7ea0a953d
parent39a3e037da0c9eeeebdbf118324630128702ea49 (diff)
downloaddotfiles-5a37b97a2473e3fdbe918df1b811b13c91616b01.tar.gz
dotfiles-5a37b97a2473e3fdbe918df1b811b13c91616b01.tar.bz2
dotfiles-5a37b97a2473e3fdbe918df1b811b13c91616b01.zip
Pulse15 smol changes for good
-rw-r--r--bash/bash_aliases5
-rw-r--r--bash/bashrc42
-rw-r--r--nvim/init.vim2
3 files changed, 31 insertions, 18 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
diff --git a/nvim/init.vim b/nvim/init.vim
index 1f63599..50b1fd3 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -136,7 +136,7 @@ nmap [f [m[{k0
nnoremap mm :w<CR>:Md2Html<CR><CR><CR>
nmap mM mm:!updatewebsite_zaz<CR><CR>
-" asciidoc:
+" asciidoctor:
nnoremap ma :w<CR>:!asciidoctor %<CR><CR>
nmap mA ma:!updatewebsite_zaz<CR><CR>