2022-10-27 21:22:57 -07:00
|
|
|
|
# shellcheck disable=SC1090,SC1091
|
|
|
|
|
|
2022-10-29 04:35:57 -07:00
|
|
|
|
### Miscellaneous
|
|
|
|
|
export VISUAL=vim
|
|
|
|
|
export EDITOR=$VISUAL
|
|
|
|
|
|
|
|
|
|
### Theme
|
|
|
|
|
COLOR_SCHEME=dark
|
|
|
|
|
|
|
|
|
|
### Colorize man pages
|
|
|
|
|
export LESS_TERMCAP_mb=$'\e[1;32m'
|
|
|
|
|
export LESS_TERMCAP_md=$'\e[1;32m'
|
|
|
|
|
export LESS_TERMCAP_me=$'\e[0m'
|
|
|
|
|
export LESS_TERMCAP_se=$'\e[0m'
|
|
|
|
|
export LESS_TERMCAP_so=$'\e[01;33m'
|
|
|
|
|
export LESS_TERMCAP_ue=$'\e[0m'
|
|
|
|
|
export LESS_TERMCAP_us=$'\e[1;4;31m'
|
|
|
|
|
export LESSHISTFILE=-
|
|
|
|
|
|
|
|
|
|
### Line Wrap
|
|
|
|
|
setterm -linewrap on 2>/dev/null
|
|
|
|
|
|
2022-10-30 18:27:37 -07:00
|
|
|
|
# Aliases / Functions
|
|
|
|
|
if [ -f "$HOME/.local/aliases" ]; then
|
|
|
|
|
. "$HOME/.local/aliases"
|
|
|
|
|
fi
|
|
|
|
|
if [ -f "$HOME/.local/functions" ]; then
|
2022-10-30 18:37:58 -07:00
|
|
|
|
. "$HOME/.local/functions"
|
2022-10-30 18:27:37 -07:00
|
|
|
|
fi
|
|
|
|
|
|
2022-10-29 04:35:57 -07:00
|
|
|
|
### Bash / ZSH
|
2022-10-31 07:18:47 -07:00
|
|
|
|
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '/bin/zsh' ]; then
|
2022-10-29 04:35:57 -07:00
|
|
|
|
### OS Detection
|
|
|
|
|
if [ -f /etc/os-release ]; then
|
|
|
|
|
. /etc/os-release
|
|
|
|
|
if [ "$ID" = 'alpine' ]; then
|
|
|
|
|
OS_ICON=""
|
2022-10-31 13:39:24 -07:00
|
|
|
|
elif [ "$ID" = 'arch' ]; then
|
2022-10-29 04:35:57 -07:00
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'centos' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'coreos' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'debian' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'deepin' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'elementary' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'endeavour' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'freebsd' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'gentoo' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'kali' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'linuxmint' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'manjaro' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'nixos' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'openbsd' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'opensuse' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'parrot' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'pop_os' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'raspberry_pi' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'redhat' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'fedora' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'ubuntu' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
else
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
if [ -d /Applications ] && [ -d /Library ] && [ -d /System ]; then
|
|
|
|
|
# macOS
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
else
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
2022-11-04 22:30:41 -07:00
|
|
|
|
### ASDF
|
|
|
|
|
if [ -f "$HOME/.local/asdf/asdf.sh" ]; then
|
|
|
|
|
export ASDF_CONFIG_FILE="$HOME/.config/asdf/asdfrc"
|
|
|
|
|
export ASDF_DIR="$HOME/.local/asdf"
|
|
|
|
|
export ASDF_DATA_DIR="$HOME/.local/asdf-data"
|
|
|
|
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-cargo-pkgs
|
|
|
|
|
export ASDF_GEM_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-ruby-pkgs
|
|
|
|
|
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-golang-pkgs
|
|
|
|
|
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-python-pkgs
|
|
|
|
|
. "$HOME/.local/asdf/asdf.sh"
|
|
|
|
|
fi
|
|
|
|
|
|
2022-10-29 04:35:57 -07:00
|
|
|
|
### MOTD
|
2022-10-30 18:27:37 -07:00
|
|
|
|
# Add file named .hushlogin in the user's home directory to disable the MOTD
|
2022-10-31 05:38:57 -07:00
|
|
|
|
if [ ! -f ~/.hushlogin ] && [ "$SHLVL" -eq 1 ]; then
|
|
|
|
|
if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then
|
2022-10-30 18:27:37 -07:00
|
|
|
|
if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
|
|
|
|
|
. "$HOME/.local/motd.sh"
|
|
|
|
|
# TODO - -- services
|
|
|
|
|
if [ -n "$SSH_CONNECTION" ]; then
|
|
|
|
|
# SSH
|
2022-10-31 15:48:57 -07:00
|
|
|
|
bash_motd --banner --processor --memory --diskspace --docker --updates --letsencrypt --login
|
2022-10-30 18:27:37 -07:00
|
|
|
|
elif command -v qubes-vmexec > /dev/null; then
|
|
|
|
|
# Qubes AppVM
|
2022-10-31 15:48:57 -07:00
|
|
|
|
bash_motd --banner --memory --diskspace --docker --updates
|
2022-10-30 18:27:37 -07:00
|
|
|
|
elif command -v qubes-dom0-update > /dev/null; then
|
|
|
|
|
# Qubes dom0
|
2022-10-31 15:48:57 -07:00
|
|
|
|
bash_motd --banner --updates
|
2022-10-30 18:27:37 -07:00
|
|
|
|
elif [ -d /Applications ] && [ -d /System ]; then
|
|
|
|
|
# macOS
|
|
|
|
|
bash_motd --banner
|
|
|
|
|
else
|
2022-10-31 15:48:57 -07:00
|
|
|
|
bash_motd --banner --processor --memory --diskspace --docker --updates --letsencrypt --login
|
2022-10-30 18:27:37 -07:00
|
|
|
|
fi
|
2022-10-29 04:35:57 -07:00
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### Colorize
|
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
|
alias diff='diff --color=auto'
|
|
|
|
|
alias ip='ip --color=auto'
|
|
|
|
|
alias pacman='pacman --color=auto'
|
|
|
|
|
|
2022-10-30 18:27:37 -07:00
|
|
|
|
### Aliases (better defaults for simple commands)
|
2022-10-29 04:35:57 -07:00
|
|
|
|
alias cp='cp -v'
|
|
|
|
|
alias rm='rm -I'
|
|
|
|
|
alias mv='mv -iv'
|
|
|
|
|
alias ln='ln -sriv'
|
|
|
|
|
alias xclip='xclip -selection c'
|
|
|
|
|
command -v vim > /dev/null && alias vi='vim'
|
|
|
|
|
|
2022-11-18 21:51:46 -08:00
|
|
|
|
### TOP - order based on preference of "top" application (last item will always be chosen if installed, e.g. glances)
|
2022-10-29 04:35:57 -07:00
|
|
|
|
command -v htop > /dev/null && alias top='htop'
|
|
|
|
|
command -v gotop > /dev/null && alias top='gotop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
|
|
|
|
command -v ytop > /dev/null && alias top='ytop -p $([ "$COLOR_SCHEME" = "light" ] && echo "-c default-dark")'
|
|
|
|
|
command -v btm > /dev/null && alias top='btm $([ "$COLOR_SCHEME" = "light" ] && echo "--color default-light")'
|
|
|
|
|
# themes for light/dark color-schemes inside ~/.config/bashtop; Press ESC to open the menu and change the theme
|
|
|
|
|
command -v bashtop > /dev/null && alias top='bashtop'
|
|
|
|
|
command -v bpytop > /dev/null && alias top='bpytop'
|
2022-11-18 21:51:46 -08:00
|
|
|
|
command -v glances > /dev/null && alias top='glances'
|
2022-10-29 04:35:57 -07:00
|
|
|
|
|
2022-10-24 14:49:46 -07:00
|
|
|
|
# vim as default
|
|
|
|
|
export EDITOR="vim"
|
|
|
|
|
|
|
|
|
|
# Don’t clear the screen after quitting a manual page
|
|
|
|
|
export MANPAGER="less -X"
|
|
|
|
|
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
### .local/bin
|
2022-08-08 20:22:34 -07:00
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
|
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
### Cargo
|
2022-09-03 09:42:59 -07:00
|
|
|
|
if [ -f "$HOME/.cargo/env" ]; then
|
|
|
|
|
. "$HOME/.cargo/env"
|
|
|
|
|
fi
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
|
2022-10-24 13:50:11 -07:00
|
|
|
|
### GTK
|
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
|
|
|
|
|
|
2022-10-24 12:47:23 -07:00
|
|
|
|
### Homebrew
|
2022-11-02 12:34:15 -07:00
|
|
|
|
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
|
|
|
|
|
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
|
|
|
|
|
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
|
|
|
|
|
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}"
|
|
|
|
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
|
|
|
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
2022-11-19 00:42:51 -08:00
|
|
|
|
export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew"
|
2022-10-24 12:47:23 -07:00
|
|
|
|
fi
|
|
|
|
|
|
2022-11-19 00:42:51 -08:00
|
|
|
|
### Whalebrew
|
|
|
|
|
export WHALEBREW_CONFIG_DIR="$HOME/.config/whalebrew"
|
|
|
|
|
|
2022-10-28 23:00:20 -07:00
|
|
|
|
### Go
|
2022-11-02 12:34:15 -07:00
|
|
|
|
export GOPATH="${HOME}/.local/go"
|
|
|
|
|
export GO111MODULE=on
|
|
|
|
|
export PATH="$PATH:${GOPATH}/bin"
|
2022-11-02 20:43:17 -07:00
|
|
|
|
if command -v go > /dev/null && which go | grep -q 'asdf' > /dev/null && command -v asdf > /dev/null; then
|
2022-11-02 12:59:35 -07:00
|
|
|
|
GOROOT="$(asdf where golang)/go"
|
|
|
|
|
export GOROOT
|
|
|
|
|
export PATH="$PATH:${GOROOT}/bin"
|
2022-11-02 20:43:17 -07:00
|
|
|
|
elif command -v go > /dev/null && command -v brew > /dev/null; then
|
2022-11-02 12:59:35 -07:00
|
|
|
|
GOROOT="$(brew --prefix go)/libexec"
|
|
|
|
|
export GOROOT
|
2022-11-17 08:52:31 -08:00
|
|
|
|
export PATH="$PATH:${GOROOT}/bin"
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### Android Studio
|
2022-11-02 12:34:15 -07:00
|
|
|
|
if [ -d ~/Library/Android ]; then
|
|
|
|
|
export PATH="$PATH:~/Library/Android/sdk/cmdline-tools/latest/bin"
|
|
|
|
|
export PATH="$PATH:~/Library/Android/sdk/platform-tools"
|
|
|
|
|
export PATH="$PATH:~/Library/Android/sdk/tools/bin"
|
|
|
|
|
export PATH="$PATH:~/Library/Android/sdk/tools"
|
|
|
|
|
fi
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
|
2022-11-02 08:26:20 -07:00
|
|
|
|
### bat
|
2022-11-02 12:34:15 -07:00
|
|
|
|
export BAT_CONFIG_PATH="$HOME/.config/batrc"
|
2022-11-02 08:26:20 -07:00
|
|
|
|
if command -v bat > /dev/null; then
|
|
|
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
|
|
|
|
alias bathelp='bat --plain --language=help'
|
2022-11-02 12:34:15 -07:00
|
|
|
|
alias cat='bat --paging=never'
|
|
|
|
|
alias less='bat'
|
2022-11-02 08:26:20 -07:00
|
|
|
|
help() {
|
|
|
|
|
"$@" --help 2>&1 | bathelp
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### BitWarden
|
|
|
|
|
# https://bitwarden.com/help/cli/#using-an-api-key
|
|
|
|
|
# BW_CLIENTID client_id
|
|
|
|
|
# BW_CLIENTSECRET
|
|
|
|
|
|
2022-11-19 00:42:51 -08:00
|
|
|
|
### curlie
|
|
|
|
|
if command -v curlie; then
|
|
|
|
|
alias curl='curlie'
|
|
|
|
|
fi
|
|
|
|
|
|
2022-11-02 08:26:20 -07:00
|
|
|
|
### Elastic Agent
|
|
|
|
|
# https://www.elastic.co/guide/en/fleet/current/agent-environment-variables.html#env-common-vars
|
|
|
|
|
|
2022-11-02 09:07:22 -07:00
|
|
|
|
### exa
|
|
|
|
|
if command -v exa > /dev/null; then
|
|
|
|
|
alias ls='exa --long --all --color auto --icons --sort=type'
|
|
|
|
|
alias tree='exa --tree'
|
|
|
|
|
fi
|
|
|
|
|
|
2022-10-24 15:53:42 -07:00
|
|
|
|
### fzf
|
2022-11-02 12:34:15 -07:00
|
|
|
|
if command -v fd > /dev/null; then
|
2022-11-02 07:00:15 -07:00
|
|
|
|
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
|
|
|
|
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
2022-10-24 15:53:42 -07:00
|
|
|
|
fi
|
|
|
|
|
|
2022-10-24 12:47:23 -07:00
|
|
|
|
### Git
|
|
|
|
|
export GIT_MERGE_AUTOEDIT=no
|
|
|
|
|
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
### gitfuzzy
|
2022-11-02 09:07:22 -07:00
|
|
|
|
export GF_BAT_STYLE=changes
|
|
|
|
|
export GF_BAT_THEME=zenbur
|
|
|
|
|
export GF_SNAPSHOT_DIRECTORY="$HOME/.local/git-fuzzy-snapshots"
|
2022-11-02 12:34:15 -07:00
|
|
|
|
if command -v delta > /dev/null; then
|
|
|
|
|
export GF_PREFERRED_PAGER="delta --theme=gruvbox --highlight-removed -w __WIDTH__"
|
|
|
|
|
fi
|
2022-11-02 09:07:22 -07:00
|
|
|
|
|
2022-11-19 00:42:51 -08:00
|
|
|
|
### gping
|
|
|
|
|
# Replacement for ping that includes graph
|
|
|
|
|
if command -v gping > /dev/null; then
|
|
|
|
|
alias ping='gping'
|
|
|
|
|
fi
|
|
|
|
|
|
2022-11-02 09:07:22 -07:00
|
|
|
|
### McFly
|
|
|
|
|
export MCFLY_FUZZY=2
|
|
|
|
|
export MCFLY_RESULTS=14
|
2022-11-02 12:34:15 -07:00
|
|
|
|
export MCFLY_KEY_SCHEME=vim
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
|
2022-11-02 07:00:15 -07:00
|
|
|
|
### nnn
|
|
|
|
|
if command -v nnn > /dev/null; then
|
2022-11-02 12:34:15 -07:00
|
|
|
|
alias n='nnn -de'
|
2022-11-02 07:00:15 -07:00
|
|
|
|
alias N='sudo -E nnn -dH'
|
|
|
|
|
alias nnn-install-plugins='curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh'
|
|
|
|
|
export NNN_RCLONE='rclone mount --read-only --no-checksum'
|
|
|
|
|
export NNN_SSHFS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
|
|
|
|
|
fi
|
|
|
|
|
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
### Poetry
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export POETRY_HOME="$HOME/.local/poetry"
|
|
|
|
|
export PATH="$POETRY_HOME/bin:$PATH"
|
|
|
|
|
|
2022-11-02 08:26:20 -07:00
|
|
|
|
### Rear
|
|
|
|
|
# https://github.com/rear/rear/blob/master/doc/user-guide/03-configuration.adoc
|
|
|
|
|
|
|
|
|
|
### ripgrep
|
|
|
|
|
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgreprc"
|
|
|
|
|
|
2022-10-24 12:47:23 -07:00
|
|
|
|
### Ruby
|
|
|
|
|
export GEM_HOME="$HOME/.local/gems"
|
2022-11-05 09:32:53 -07:00
|
|
|
|
export PATH="$PATH:$GEM_HOME/bin"
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
|
|
|
|
|
### Volta
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export VOLTA_HOME="$HOME/.local/volta"
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
### SDKMan
|
2022-11-19 00:42:51 -08:00
|
|
|
|
if command -v brew > /dev/null && command -v sdkman-cli > /dev/null; then
|
|
|
|
|
export SDKMAN_DIR="$(brew --prefix sdkman-cli)/libexec"
|
|
|
|
|
. "$SDKMAN_DIR/bin/sdkman-init.sh"
|
|
|
|
|
elif [ -f "$SDKMAN_DIR/bin/sdkman-init.sh" ]; then
|
|
|
|
|
export SDKMAN_DIR="$HOME/.local/sdkman"
|
|
|
|
|
. "$SDKMAN_DIR/bin/sdkman-init.sh"
|
2022-09-30 06:09:35 -07:00
|
|
|
|
fi
|
Update dotfiles/.config/bashtop/bashtop.cfg, dotfiles/.config/inkscape/palettes/flat-remix-palette.gpl, dotfiles/.config/qt5ct/qt5ct.conf, dotfiles/.config/tilix/schemes/Flat-Remix.json, dotfiles/.local/share/qt5ct/colors/flat-remix-dark.conf, dotfiles/.local/share/qt5ct/colors/flat-remix-light.conf, dotfiles/.local/share/qt5ct/qss/fusion-simple-scrollbar.qss, dotfiles/.bashrc, .gitattributes, dotfiles/.gitconfig, dotfiles/.zshrc, dotfiles/.local/p10k.zsh, dotfiles/.local/antigen.zsh, dotfiles/.local/fzf.zsh, dotfiles/.profile
2022-08-29 18:45:16 -07:00
|
|
|
|
|
|
|
|
|
### Vagrant
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export VAGRANT_DEFAULT_PROVIDER=virtualbox
|
2022-03-10 23:40:18 -08:00
|
|
|
|
export VAGRANT_HOME="$HOME/.local/vagrant.d"
|
2022-10-24 14:15:03 -07:00
|
|
|
|
|
|
|
|
|
### wget
|
|
|
|
|
export WGETRC="$HOME/.config/wgetrc"
|