BIG UPDATE: shell: add profile, move calc and mkcd to files, move

shell-independent config (aliases, functions, env vars, options) to
.config/shell/shrc, make bashrc and zshrc use the same shrc, add TTY
detection for changing caps lock to escape in a TTY, add option for
skipping plugin loading, and maybe a few other things

If this goes well, I'll be tempted to call this version 1.0.  Things
have been very stable for the last few months.  Although, since it's the
first really big change in a while, that might make it version 2.0?
Should dotfiles have big version numbers at all? Probably not.
This commit is contained in:
PowerUser64 2022-04-08 13:36:29 -07:00
parent 4241c6ef05
commit f5e15cacde
6 changed files with 209 additions and 94 deletions

View file

@ -6,8 +6,8 @@ alias \
vimdiff='nvim -d'
alias \
vv="$EDITOR" \
e="$EDITOR" \
vv='$EDITOR' \
e='$EDITOR' \
sedit='sudoedit' \
# I do this too much by accident smh my head
@ -42,16 +42,22 @@ alias make='make -j$(nproc)'
# Colors
alias \
ls='ls -hN --color=auto --group-directories-first' \
grep='grep --color=auto' \
diff='diff --color=auto' \
pacman='pacman --color=auto' \
parue='/usr/bin/paru --color=auto --sudoloop --newsonupgrade --pgpfetch --upgrademenu --bottomup --fm nvim' \
paru='parue --skipreview' \
grep='grep --color=auto' \
egrep='egrep --color=auto' \
fgrep='fgrep --color=auto' \
diff='diff --color=auto' \
pacman='pacman --color=auto' \
command -v lsd > /dev/null && alias \
ls=lsd \
lsd='lsd --group-dirs=first' \
# super duper paru alias
# shellcheck disable=SC2139
alias \
parue="$(which paru) --color=auto --sudoloop --newsonupgrade --pgpfetch --upgrademenu --bottomup --fm nvim" \
paru='parue --skipreview'
if command -v lsd > /dev/null; then
$IS_TTY && alias ls=lsd
alias lsd='lsd --group-dirs=first'
fi
# <<<
## Mini short-hand scripts (ex: glone = git clone) >>>
# dotfile management
@ -77,6 +83,7 @@ alias zup='zinit self-update && zinit update --parallel'
alias \
nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \
zc='$EDITOR ~/.zshrc' \
sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \
fstab='sudoedit /etc/fstab' \
hst='$EDITOR $HISTFILE' \
@ -98,6 +105,7 @@ alias cpv="rsync -ah --info=progress2"
alias ls-ports='netstat -tulpn'
# list all disks and their mount points
# shellcheck disable=SC2142
alias mnt="mount | awk -F' ' '{ printf \"%s\t%s\n\",\$1,\$3; }' | column -t | grep -E '^/dev/' | sort"
# backs up list of packages
@ -113,9 +121,12 @@ alias fds='fd --hidden --exclude /run'
SMART_PLUG_IP='192.168.1.250'
alias light='tplink_smartplug.py -t $SMART_PLUG_IP -c'
# Common ls aliases
# Common ls aliases
alias \
l=ls \
l='ls' \
la='ls -ah' \
ll='ls -lh' \
lla='ls -lah' \
# <<<
# vim:fdm=marker:fmr=>>>,<<<:fdl=1:et:ft=bash:sw=3:ts=3