incorporate fish experiments into zsh

This commit is contained in:
Daylin Morgan 2024-06-10 14:52:09 -05:00
parent c38d88c08f
commit 748e7408b3
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 10 additions and 10 deletions

View file

@ -18,6 +18,10 @@ alias mkrt='make -C $(git rev-parse --show-toplevel)'
alias mk="make" alias mk="make"
alias mkc="make -C" alias mkc="make -C"
alias yyyymmdd='date +%Y%m%d'
alias ds='date +%Y-%m-%d'
alias ts='date +%Y-%m-%dT%H:%M:%SZ'
# url encode/decode # url encode/decode
alias urldecode='python3 -c "import sys, urllib.parse as ul; \ alias urldecode='python3 -c "import sys, urllib.parse as ul; \
print(ul.unquote_plus(sys.argv[1]))"' print(ul.unquote_plus(sys.argv[1]))"'

View file

@ -6,4 +6,3 @@ export VIV_NO_SETUPTOOLS=1
export VIV_RUN_MODE='semi-ephemeral' export VIV_RUN_MODE='semi-ephemeral'
export TSM_CONFIG="$XDG_CONFIG_HOME/tsm/config-$(hostname).usu" export TSM_CONFIG="$XDG_CONFIG_HOME/tsm/config-$(hostname).usu"

View file

@ -11,6 +11,7 @@ ohmyzsh/ohmyzsh path:plugins/copyfile
ohmyzsh/ohmyzsh path:plugins/extract ohmyzsh/ohmyzsh path:plugins/extract
ohmyzsh/ohmyzsh path:plugins/magic-enter ohmyzsh/ohmyzsh path:plugins/magic-enter
ohmyzsh/ohmyzsh path:plugins/fancy-ctrl-z ohmyzsh/ohmyzsh path:plugins/fancy-ctrl-z
ohmyzsh/ohmyzsh path:plugins/colored-man-pages
# tools # tools
junegunn/fzf path:shell/completion.zsh junegunn/fzf path:shell/completion.zsh

View file

@ -14,23 +14,18 @@ done
# Ensure path arrays do not contain duplicates. # Ensure path arrays do not contain duplicates.
typeset -gU path fpath cdpath typeset -gU path fpath cdpath
# add custom completions
fpath=( fpath=(
${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}/completions(-/FN) ${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}/completions(-/FN)
$fpath $fpath
) )
# Set the list of directories that zsh searches for commands.
path=( path=(
$HOME/{,.local/}{,s}bin(N) $HOME/{,.local/}{,s}bin(N)
$HOME/.extra/bin(N)
$HOME/.{go,cargo,pyenv,pixi}/bin(N) $HOME/.{go,cargo,pyenv,pixi,zig}/bin(N)
$HOME/.zig(N)
/opt/local/{,s}bin(N) /{opt,usr}/{,local/}{,s}bin(N)
/usr/{,local/}{,s}bin(N)
# prefer NixOs paths to qtile path corruption # prefer NixOs paths to qtile path corruption
/run/{wrappers,current-system/sw}/bin(N) /run/{wrappers,current-system/sw}/bin(N)
@ -38,13 +33,14 @@ path=(
$path $path
) )
# start by sourcing extras
for rcfile in $ZDOTDIR/local/{current,shared}/*.{,z}sh(N); do for rcfile in $ZDOTDIR/local/{current,shared}/*.{,z}sh(N); do
source $rcfile source $rcfile
done done
# Set default less options.
export LESS="${LESS:--g -i -M -R -S -w -z-4}" export LESS="${LESS:--g -i -M -R -S -w -z-4}"
# Use `< file` to quickly view the contents of any file. # Use `< file` to quickly view the contents of any file.
[[ -z "$READNULLCMD" ]] || READNULLCMD=$PAGER [[ -z "$READNULLCMD" ]] || READNULLCMD=$PAGER
# needed for omz plugin colored-man-pages
autoload colors && colors