From 6df2350dd73a262d1d838ebae400217d6f731ad0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 23 Feb 2023 14:30:40 -0600 Subject: [PATCH] more aliases more extras --- home/private_dot_config/zsh/conf.d/aliases.zsh | 5 ++--- home/private_dot_config/zsh/dot_gitignore | 1 + home/private_dot_config/zsh/dot_zprofile | 16 +++++++--------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/home/private_dot_config/zsh/conf.d/aliases.zsh b/home/private_dot_config/zsh/conf.d/aliases.zsh index fca962f..b93ae81 100644 --- a/home/private_dot_config/zsh/conf.d/aliases.zsh +++ b/home/private_dot_config/zsh/conf.d/aliases.zsh @@ -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'" diff --git a/home/private_dot_config/zsh/dot_gitignore b/home/private_dot_config/zsh/dot_gitignore index 9875b9b..497bcd4 100644 --- a/home/private_dot_config/zsh/dot_gitignore +++ b/home/private_dot_config/zsh/dot_gitignore @@ -10,6 +10,7 @@ .zdirs .zsh_history .zsh_plugins.zsh +.extras *.bak *.local *.local.zsh diff --git a/home/private_dot_config/zsh/dot_zprofile b/home/private_dot_config/zsh/dot_zprofile index bbd42b4..f1825f3 100644 --- a/home/private_dot_config/zsh/dot_zprofile +++ b/home/private_dot_config/zsh/dot_zprofile @@ -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 #