more aliases more extras
This commit is contained in:
parent
936ceae300
commit
6df2350dd7
3 changed files with 10 additions and 12 deletions
|
@ -31,8 +31,7 @@ alias urldecode='python3 -c "import sys, urllib.parse as ul; \
|
||||||
alias urlencode='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]))"'
|
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 zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
|
||||||
alias zdot='cd ${ZDOTDIR:-~}'
|
alias zdot='cd ${ZDOTDIR:-~}'
|
||||||
|
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
|
||||||
|
alias today="date +'%Y-%m-%d'"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
.zdirs
|
.zdirs
|
||||||
.zsh_history
|
.zsh_history
|
||||||
.zsh_plugins.zsh
|
.zsh_plugins.zsh
|
||||||
|
.extras
|
||||||
*.bak
|
*.bak
|
||||||
*.local
|
*.local
|
||||||
*.local.zsh
|
*.local.zsh
|
||||||
|
|
|
@ -26,16 +26,19 @@ typeset -gU path fpath cdpath mailpath
|
||||||
|
|
||||||
# Set the list of directories that zsh searches for commands.
|
# Set the list of directories that zsh searches for commands.
|
||||||
path=(
|
path=(
|
||||||
$HOME/{go,.cargo}/bin(N)
|
|
||||||
$HOME/.extra/bin(N)
|
|
||||||
$HOME/{,.local/}{,s}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)
|
/usr/{,local/}{,s}bin(N)
|
||||||
|
|
||||||
$path
|
$path
|
||||||
)
|
)
|
||||||
|
|
||||||
# start by sourcing extras
|
# start by sourcing extras
|
||||||
for rcfile in $HOME/.extra/runcom/*; do
|
for rcfile in $ZDOTDIR/.extras/current/*(N); do
|
||||||
source $rcfile
|
source $rcfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -46,11 +49,6 @@ done
|
||||||
# Set default less options.
|
# 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}"
|
||||||
|
|
||||||
# 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
|
# Misc
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue