ZSH
This commit is contained in:
parent
f6a7963f1d
commit
20e67036df
22 changed files with 2414 additions and 246 deletions
51
config/shell/shenv
Normal file
51
config/shell/shenv
Normal file
|
@ -0,0 +1,51 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Shell common environment variables and functions (BusyBox compatible)
|
||||
#
|
||||
|
||||
# Favourite commands
|
||||
export PAGER=less
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
export BROWSER=qutebrowser
|
||||
|
||||
# Program-specific
|
||||
|
||||
[ -z "$SSH_AUTH_SOCK" ] && [ -x "$(command -v ssh-agent)" ] && eval "$(ssh-agent -s)"
|
||||
export GOPATH=$HOME/.cache/go
|
||||
# export JAVA_FONTS=/usr/share/fonts/TTF
|
||||
# export ANDROID_HOME=/opt/android-sdk
|
||||
# export ARDUINO=/usr/share/arduino
|
||||
# export ARDUINO_DIR=$ARDUINO
|
||||
# export ARDMK_VENDOR=archlinux-arduino
|
||||
|
||||
# Path
|
||||
|
||||
# Function stolen from Arch Linux /etc/profile
|
||||
appendpath() {
|
||||
if [ ! -d "$1" ]; then
|
||||
return
|
||||
fi
|
||||
case ":$PATH:" in
|
||||
*:"$1":*) ;;
|
||||
|
||||
*)
|
||||
# TODO Reverse order: I want the latest ones to supersedes the older ones
|
||||
export PATH="${PATH:+$PATH:}$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
appendpath '/usr/lib/ccache/bin'
|
||||
appendpath "$GOPATH"
|
||||
appendpath "$HOME/.local/bin"
|
||||
appendpath "$HOME/.scripts"
|
||||
|
||||
# If running on termux, load those extra scripts
|
||||
[ -d /data/data/com.termux/ ] && (
|
||||
appendpath "$HOME/.termux/scripts"
|
||||
appendpath "$HOME/.termux/bin"
|
||||
)
|
||||
|
||||
# For superseding commands with better ones if they are present
|
Loading…
Add table
Add a link
Reference in a new issue