summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc19
-rw-r--r--st/config.h4
2 files changed, 16 insertions, 7 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 0bdac5a..3b74c60 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -56,10 +56,6 @@ if ! shopt -oq posix; then
fi
# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
-fi
-
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
@@ -77,6 +73,11 @@ PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1
# Extra
# ======================================================================
+# My binaries
+if [ -d "$HOME/mahcode/bin" ]; then
+ PATH="$HOME/mahcode/bin:$PATH"
+fi
+
# Default editor. Affects a lot of programs.
export EDITOR=vim
@@ -120,7 +121,7 @@ if [ -f /usr/bin/pandoc ]; then
fi
# Greeting or salute
-if [ -f /usr/games/cowsay ]; then
+if [ -f /usr/games/cowsay ] || [ -f /usr/bin/cowsay ]; then
# TODO: randomly select one of the following greeting commands
#cowsay -f flaming-sheep "oh no" # original
#cowsay $(fortune -e 30% debian-hints 20% linux 20% science \
@@ -147,3 +148,11 @@ export NODE_PATH=~/code/nodejs/node-v16.15.1-linux-x64/lib/node_modules
# Rust
#. "$HOME/.cargo/env"
+
+# Ruby on Rails
+#https://stackoverflow.com/a/19072136/7498073
+gempath="$HOME/.local/share/gem/ruby/3.0.0/bin"
+export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
+if [[ -d $gempath ]]; then
+ export PATH="$PATH:$GEM_HOME/bin"
+fi
diff --git a/st/config.h b/st/config.h
index 31aebe6..fb490d9 100644
--- a/st/config.h
+++ b/st/config.h
@@ -16,8 +16,8 @@ static char *font2[] = {
* patch named "libxft-gra" that solves this issue. It's documented on
* the st article on the ArchLinux Wiki */
//"PowerlineSymbols:pixelsize=15:antialias=true:autohint=true",
- //"Source Han Sans JP:pixelsize=12:antialias=true:autohint=true",
- "Source Han Serif JP:pixelsize=12:antialias=true:autohint=true",
+ "Source Han Sans JP:pixelsize=12:antialias=true:autohint=true",
+ //"Source Han Serif JP:pixelsize=12:antialias=true:autohint=true",
"Noto Color Emoji:pixelsize=10:antialias=true:autohint=true",
/* Fallback font */
"Symbola:pixelsize=10:antialias=true:autohint=true",