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
|
|
|
|
|
|
|
|
|
|
### Bash / ZSH
|
|
|
|
|
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '/bin/zsh' ] || [ "$SHELL" = '/bin/zsh' ]; then
|
|
|
|
|
### OS Detection
|
|
|
|
|
if [ -f /etc/os-release ]; then
|
|
|
|
|
. /etc/os-release
|
|
|
|
|
if [ "$ID" = 'alpine' ]; then
|
|
|
|
|
OS_ICON=""
|
|
|
|
|
elif [ "$ID" = 'archlinux' ]; then
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
### MOTD
|
|
|
|
|
if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [ "$SHLVL" -eq 1 ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then
|
|
|
|
|
if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
|
|
|
|
|
. "$HOME/.local/motd.sh"
|
|
|
|
|
|
|
|
|
|
# TODO - -- services
|
|
|
|
|
if [ -n "$SSH_CONNECTION" ]; then
|
|
|
|
|
# SSH
|
|
|
|
|
bash_motd --banner --processor --memory --diskspace --services --docker --updates --letsencrypt --login
|
|
|
|
|
elif command -v qubes-vmexec > /dev/null; then
|
|
|
|
|
# Qubes AppVM
|
|
|
|
|
bash_motd --banner --memory --diskspace --docker
|
|
|
|
|
elif command -v qubes-dom0-update > /dev/null; then
|
|
|
|
|
# Qubes dom0
|
|
|
|
|
bash_motd --banner --updates
|
|
|
|
|
elif [ -d /Applications ] && [ -d /System ]; then
|
|
|
|
|
# macOS
|
|
|
|
|
bash_motd --banner
|
|
|
|
|
else
|
|
|
|
|
bash_motd --banner --processor --memory --diskspace --services --docker --updates --letsencrypt --login
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
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
|
|
|
|
# Easy file sharing from the command line, using transfer.sh
|
|
|
|
|
transfer() {
|
|
|
|
|
if [ $# -eq 0 ]; then
|
2022-10-27 21:22:57 -07:00
|
|
|
|
echo -e "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>" >&2
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
if tty -s; then
|
|
|
|
|
file="$1"
|
|
|
|
|
file_name=$(basename "$file")
|
|
|
|
|
if [ ! -e "$file" ]; then
|
|
|
|
|
echo "$file: No such file or directory" >&2
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
if [ -d "$file" ]; then
|
|
|
|
|
file_name="$file_name.zip"
|
|
|
|
|
(cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null,
|
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
|
|
|
|
else
|
2022-10-27 21:22:57 -07:00
|
|
|
|
curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" <"$file" | tee /dev/null
|
|
|
|
|
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
|
|
|
|
else
|
2022-10-27 21:22:57 -07:00
|
|
|
|
file_name=$1
|
|
|
|
|
curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Install WebDriverAgent on iOS device
|
|
|
|
|
appiumwebdriver() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
# read -r "Enter the UDID of the device you wish to install WebDriverAgent on: " UDID_INPUT
|
|
|
|
|
mkdir -p Resources/WebDriverAgent.bundle
|
|
|
|
|
bash ./Scripts/bootstrap.sh -d
|
|
|
|
|
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent || return
|
|
|
|
|
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=${UDID_INPUT}" test
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Change directories and view contents at the same time
|
|
|
|
|
cl() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
DIR="$*"
|
|
|
|
|
# if no DIR given, go home
|
|
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
|
DIR=$HOME
|
|
|
|
|
fi
|
|
|
|
|
builtin cd "${DIR}" &&
|
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
|
|
|
|
# use your preferred ls command
|
2022-10-27 21:22:57 -07:00
|
|
|
|
ls -F --color=auto
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Checks status of a website on downforeveryoneorjustme.com
|
|
|
|
|
down4me() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'
|
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-27 21:22:57 -07:00
|
|
|
|
find() {
|
|
|
|
|
if [ $# = 1 ]; then
|
|
|
|
|
# shellcheck disable=SC2145
|
|
|
|
|
command find . -iname "*$@*"
|
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
|
|
|
|
else
|
2022-10-27 21:22:57 -07:00
|
|
|
|
command find "$@"
|
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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Opens current repository in browser
|
|
|
|
|
gitopen() {
|
|
|
|
|
git remote -v | head -n 1 | awk -F "@" '{print $2}' | awk -F " " '{print $1}' | sed 's/:/\//g' | sed 's/.git//g' | awk '{print "http://"$1}' | xargs open
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Open Mac OS X desktop on a Linux machine
|
|
|
|
|
macosx() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:big-sur
|
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-08-30 01:25:47 -07:00
|
|
|
|
# Run the quickstart script
|
|
|
|
|
quickstart() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
if command -v qvm-run >/dev/null; then
|
|
|
|
|
qvm-run --pass-io personal "curl -sSL https://install.doctor/qubes" >"$HOME/setup.sh" && bash "$HOME/setup.sh"
|
2022-08-30 01:25:47 -07:00
|
|
|
|
elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then
|
2022-10-27 21:22:57 -07:00
|
|
|
|
curl -sSL https://install.doctor/quickstart >"$HOME/setup.sh" && bash "$HOME/setup.sh"
|
2022-08-30 01:25:47 -07:00
|
|
|
|
elif [ -f '/etc/os-release' ]; then
|
2022-10-27 21:22:57 -07:00
|
|
|
|
curl -sSL https://install.doctor/quickstart >"$HOME/setup.sh" && bash "$HOME/setup.sh"
|
2022-08-30 01:25:47 -07:00
|
|
|
|
fi
|
|
|
|
|
rm -f "$HOME/setup.sh"
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
# Generate a random string of X length
|
|
|
|
|
randomstring() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
|
head /dev/urandom | tr -dc A-Za-z0-9 | head -c "$1"
|
|
|
|
|
else
|
|
|
|
|
echo "Pass the number of characters you would like the string to be. Example: randomstring 14"
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Reset Docker to factory settings
|
|
|
|
|
resetdocker() {
|
2022-10-27 21:22:57 -07:00
|
|
|
|
set +e
|
|
|
|
|
CONTAINER_COUNT="$(docker ps -a -q | wc -l)"
|
|
|
|
|
if [ "$CONTAINER_COUNT" -gt 0 ]; then
|
|
|
|
|
docker stop "$(docker ps -a -q)"
|
|
|
|
|
docker rm "$(docker ps -a -q)"
|
|
|
|
|
fi
|
|
|
|
|
VOLUME_COUNT="$(docker volume ls -q | wc -l)"
|
|
|
|
|
if [ "$VOLUME_COUNT" -gt 0 ]; then
|
|
|
|
|
docker volume rm "$(docker volume ls -q)"
|
|
|
|
|
fi
|
|
|
|
|
NETWORK_COUNT="$(docker network ls -q | wc -l)"
|
|
|
|
|
if [ "$NETWORK_COUNT" -gt 0 ]; then
|
|
|
|
|
docker network rm "$(docker network ls -q)"
|
|
|
|
|
fi
|
|
|
|
|
docker system prune -a --force
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
### Aliases
|
|
|
|
|
|
2022-10-29 04:35:57 -07:00
|
|
|
|
### Colorize
|
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
|
|
### Aliases
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
|
|
### LS & TREE
|
|
|
|
|
alias ll='ls -la'
|
|
|
|
|
alias la='ls -A'
|
|
|
|
|
alias l='ls -F'
|
|
|
|
|
command -v lsd > /dev/null && alias ls='lsd --group-dirs first' && \
|
|
|
|
|
alias tree='lsd --tree'
|
|
|
|
|
command -v colorls > /dev/null && alias ls='colorls --sd --gs' && \
|
|
|
|
|
alias tree='colorls --tree'
|
|
|
|
|
|
|
|
|
|
### CAT & LESS
|
|
|
|
|
command -v bat > /dev/null && \
|
|
|
|
|
alias bat='bat --theme=ansi' && \
|
|
|
|
|
alias cat='bat --pager=never' && \
|
|
|
|
|
alias less='bat'
|
|
|
|
|
# in debian the command is batcat
|
|
|
|
|
command -v batcat > /dev/null && \
|
|
|
|
|
alias batcat='batcat --theme=ansi' && \
|
|
|
|
|
alias cat='batcat --pager=never' && \
|
|
|
|
|
alias less='batcat'
|
|
|
|
|
|
|
|
|
|
### TOP
|
|
|
|
|
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'
|
|
|
|
|
|
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
|
|
|
|
# Create an Authelia password hash
|
|
|
|
|
alias autheliapassword='docker run authelia/authelia:latest authelia hash-password'
|
|
|
|
|
|
|
|
|
|
# Shows IP addresses that are currently banned by fail2ban
|
|
|
|
|
alias banned='sudo zgrep "Ban" /var/log/fail2ban.log*'
|
|
|
|
|
|
|
|
|
|
alias connections='nm-connection-editor'
|
|
|
|
|
|
|
|
|
|
# Make copy command verbose
|
|
|
|
|
alias cp='cp -v'
|
|
|
|
|
|
|
|
|
|
# Copies with a progress bar
|
|
|
|
|
alias cpv='rsync -ah --info=progress2'
|
|
|
|
|
|
|
|
|
|
# Download a file
|
|
|
|
|
alias download='curl --continue-at - --location --progress-bar --remote-name --remote-time'
|
|
|
|
|
|
|
|
|
|
# Download a website
|
|
|
|
|
alias downloadsite='wget --mirror -p --convert-links -P'
|
|
|
|
|
|
|
|
|
|
# Flush DNS
|
|
|
|
|
alias flushdns='sudo systemd-resolve --flush-caches && sudo systemd-resolve --statistics'
|
|
|
|
|
|
2022-10-29 04:51:19 -07:00
|
|
|
|
# FontBook for macOS
|
|
|
|
|
alias fontbook="open -b com.apple.FontBook"
|
|
|
|
|
|
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
|
|
|
|
# Get the possible GRUB resolutions
|
|
|
|
|
alias grubresolutions='sudo hwinfo --framebuffer'
|
|
|
|
|
|
|
|
|
|
# Execute git command with sudo priviledges while retaining .gitconfig
|
|
|
|
|
alias gsudo='sudo git -c "include.path="${XDG_CONFIG_DIR:-$HOME/.config}/git/config\" -c \"include.path=$HOME/.gitconfig\"'
|
|
|
|
|
|
|
|
|
|
# Create hashed password for Ansible user creation
|
|
|
|
|
alias hashpassword='mkpasswd --method=sha-512'
|
|
|
|
|
|
|
|
|
|
# Show full output when using ls
|
|
|
|
|
alias ls='ls -AlhF --color=auto'
|
|
|
|
|
|
|
|
|
|
# Create parent directories automatically
|
|
|
|
|
alias mkdir='mkdir -pv'
|
|
|
|
|
|
|
|
|
|
# Make mount command output readable
|
|
|
|
|
alias mount='mount | column -t'
|
|
|
|
|
|
|
|
|
|
# Make mv command verbose
|
|
|
|
|
alias mv='mv -v'
|
|
|
|
|
|
|
|
|
|
# Show IP address
|
|
|
|
|
alias myip='curl http://ipecho.net/plain; echo'
|
|
|
|
|
|
|
|
|
|
# Shows local IP addresses
|
|
|
|
|
alias mylocalip="ifconfig | grep -Eo 'inet (addr:|adr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'"
|
|
|
|
|
|
|
|
|
|
# Show open ports
|
|
|
|
|
alias ports='sudo netstat -tulanp'
|
|
|
|
|
|
|
|
|
|
# Shuts down the computer, skipping the shutdown scripts
|
|
|
|
|
alias poweroff='sudo /sbin/poweroff'
|
|
|
|
|
|
|
|
|
|
# Open the Rclone web GUI
|
2022-09-30 06:42:11 -07:00
|
|
|
|
alias rclonegui='rclone rcd --rc-web-gui --rc-user=admin --rc-pass=pass --rc-serve'
|
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
|
|
|
|
|
|
|
|
|
# Reboot the computer
|
|
|
|
|
alias reboot='sudo /sbin/reboot'
|
|
|
|
|
|
|
|
|
|
# Make rm command verbose
|
|
|
|
|
alias rm='rm -vi'
|
|
|
|
|
|
|
|
|
|
# Launch the Python Simple HTTP Server
|
|
|
|
|
alias serve='python -m SimpleHTTPServer'
|
|
|
|
|
|
|
|
|
|
# Generate a SHA1 digest
|
|
|
|
|
alias sha1='openssl sha1'
|
|
|
|
|
|
|
|
|
|
# Shutdown the computer
|
|
|
|
|
alias shutdown='sudo /sbin/shutdown'
|
|
|
|
|
|
|
|
|
|
# Speed test
|
|
|
|
|
alias speedtest='wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip'
|
|
|
|
|
|
|
|
|
|
# Shortcut for config file
|
|
|
|
|
alias sshconfig='${EDITOR:code} ~/.ssh/config'
|
|
|
|
|
|
|
|
|
|
# Pastebin
|
|
|
|
|
alias sprunge='curl -F "sprunge=<-" http://sprunge.us'
|
|
|
|
|
|
|
|
|
|
# Disable Tor for current shell
|
|
|
|
|
alias toroff='source torsocks off'
|
|
|
|
|
|
|
|
|
|
# Enable Tor for current shell
|
|
|
|
|
alias toron='source torsocks on'
|
|
|
|
|
|
|
|
|
|
# Test Tor connection
|
|
|
|
|
alias tortest='curl --socks5-hostname 127.0.0.1:9050 --silent https://check.torproject.org/ | head -25'
|
|
|
|
|
|
|
|
|
|
# Unban IP address (e.g. unban 10.14.24.14)
|
|
|
|
|
alias unban='sudo fail2ban-client set sshd unbanip'
|
|
|
|
|
|
|
|
|
|
# Recursively encrypts files using Ansible Vault
|
|
|
|
|
alias unvaultdir='find . -type f -printf "%h/\"%f\" " | xargs ansible-vault decrypt'
|
|
|
|
|
|
|
|
|
|
# Alias for updating software
|
|
|
|
|
alias update='sudo apt-get update && sudo apt-get upgrade'
|
|
|
|
|
|
|
|
|
|
# Sets v as an alias for vim
|
|
|
|
|
alias v='vim'
|
|
|
|
|
|
|
|
|
|
# Recursively encrypts files using Ansible Vault
|
|
|
|
|
alias vaultdir='find . -type f -printf "%h/\"%f\" " | xargs ansible-vault encrypt'
|
|
|
|
|
|
|
|
|
|
# Shows nice looking report of weather
|
|
|
|
|
alias weather='curl -A curl wttr.in'
|
|
|
|
|
|
|
|
|
|
# Change .wget-hsts file location
|
|
|
|
|
alias wget="wget --hsts-file ~/.config/.wget-hsts"
|
|
|
|
|
|
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
|
|
|
|
|
if [ -e /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
|
|
|
|
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:-}"
|
|
|
|
|
fi
|
|
|
|
|
|
2022-10-28 23:00:20 -07:00
|
|
|
|
### Go
|
|
|
|
|
export GOPATH="${HOME}/.local/go"
|
|
|
|
|
export GO111MODULE=on
|
|
|
|
|
export PATH="$PATH:${GOPATH}/bin"
|
|
|
|
|
|
2022-10-27 21:22:57 -07:00
|
|
|
|
if command -v brew >/dev/null; then
|
2022-10-25 14:50:59 -07:00
|
|
|
|
### Go
|
2022-10-27 21:22:57 -07:00
|
|
|
|
GOROOT="$(brew --prefix golang)/libexec"
|
|
|
|
|
export GOROOT
|
2022-10-28 23:00:20 -07:00
|
|
|
|
export PATH="$PATH:${GOROOT}/bin"
|
2022-10-25 14:50:59 -07:00
|
|
|
|
|
|
|
|
|
### ASDF
|
2022-10-28 23:00:20 -07:00
|
|
|
|
export ASDF_CONFIG_FILE="$HOME/.config/asdf/asdfrc"
|
|
|
|
|
export ASDF_DIR="$HOME/.local/asdf"
|
|
|
|
|
export ASDF_DATA_DIR="$HOME/.local/asdf"
|
|
|
|
|
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
|
2022-10-25 14:50:59 -07:00
|
|
|
|
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
2022-10-27 21:22:57 -07:00
|
|
|
|
. "$(brew --prefix asdf)/libexec/asdf.sh"
|
2022-10-25 14:50:59 -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
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### Android Studio
|
|
|
|
|
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"
|
|
|
|
|
|
2022-10-24 15:53:42 -07:00
|
|
|
|
### fzf
|
|
|
|
|
if [ -d /usr/local/opt/fzf/bin ]; then
|
|
|
|
|
PATH="$PATH:/usr/local/opt/fzf/bin"
|
|
|
|
|
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
|
|
|
|
|
export PATH="/usr/local/src/gitfuzzy/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
### Poetry
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export POETRY_HOME="$HOME/.local/poetry"
|
|
|
|
|
if [ ! -d "$POETRY_HOME" ]; then
|
|
|
|
|
mkdir -p "$POETRY_HOME"
|
|
|
|
|
fi
|
|
|
|
|
export PATH="$POETRY_HOME/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
### Ruby
|
|
|
|
|
export GEM_HOME="$HOME/.local/gems"
|
|
|
|
|
if [ ! -d "$GEM_HOME" ]; then
|
|
|
|
|
mkdir -p "$GEM_HOME"
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
### Volta
|
2022-10-24 12:47:23 -07:00
|
|
|
|
export VOLTA_HOME="$HOME/.local/volta"
|
|
|
|
|
if [ ! -d "$HOME/.local/volta" ]; then
|
|
|
|
|
mkdir -p "$HOME/.local/volta"
|
|
|
|
|
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
|
|
|
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
### SDKMan
|
|
|
|
|
export SDKMAN_DIR="$HOME/.local/sdkman"
|
2022-09-30 06:09:35 -07:00
|
|
|
|
if [ -s "$HOME/.local/sdkman/bin/sdkman-init.sh" ]; then
|
|
|
|
|
. "$HOME/.local/sdkman/bin/sdkman-init.sh"
|
|
|
|
|
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-08-07 20:20:33 -07:00
|
|
|
|
# Running this will update GPG to point to the current YubiKey
|
|
|
|
|
alias yubikey-gpg-stub='gpg-connect-agent "scd serialno" "learn --force" /bye'
|
|
|
|
|
|
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"
|