more aliases more extras

This commit is contained in:
Daylin Morgan 2023-02-23 14:30:40 -06:00
parent 936ceae300
commit 6df2350dd7
3 changed files with 10 additions and 12 deletions

View file

@ -31,8 +31,7 @@ alias urldecode='python3 -c "import sys, urllib.parse as ul; \
alias urlencode='python3 -c "import sys, urllib.parse as ul; \
print (ul.quote_plus(sys.argv[1]))"'
# misc
alias zshrc='${EDITOR:-vim} "${ZDOTDIR:-$HOME}"/.zshrc'
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
alias zdot='cd ${ZDOTDIR:-~}'
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
alias today="date +'%Y-%m-%d'"

View file

@ -10,6 +10,7 @@
.zdirs
.zsh_history
.zsh_plugins.zsh
.extras
*.bak
*.local
*.local.zsh

View file

@ -26,16 +26,19 @@ typeset -gU path fpath cdpath mailpath
# Set the list of directories that zsh searches for commands.
path=(
$HOME/{go,.cargo}/bin(N)
$HOME/.extra/bin(N)
$HOME/{,.local/}{,s}bin(N)
/opt/{homebrew,local}/{,s}bin(N)
$HOME/.extra/bin(N)
$HOME/{go,.cargo}/bin(N)
/opt/local/{,s}bin(N)
/usr/{,local/}{,s}bin(N)
$path
)
# start by sourcing extras
for rcfile in $HOME/.extra/runcom/*; do
for rcfile in $ZDOTDIR/.extras/current/*(N); do
source $rcfile
done
@ -46,11 +49,6 @@ done
# Set default less options.
export LESS="${LESS:--g -i -M -R -S -w -z-4}"
# Set the less input preprocessor.
if [[ -z "$LESSOPEN" ]] && (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi
#
# Misc
#