Compare commits

..

No commits in common. '975a46396a736f3578274fd6dc9710a79c8575e2' and '8ed7f750aa424a756d4668ad80eae2bf3a2c2017' have entirely different histories.

@ -155,11 +155,6 @@ autoload -Uz zmv
function md() { [[ $# == 1 ]] && mkdir -p -- "$1" && cd -- "$1" }
compdef _directories md
tat() {
name=${1:-$(basename $PWD | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)")}
tmux new-session -As $name
}
# https://docs.brew.sh/Shell-Completion
if type brew &>/dev/null; then
FPATH=${HOMEBREW_PREFIX:+$HOMEBREW_PREFIX/share/zsh/site-functions:${FPATH}}
@ -179,7 +174,7 @@ if (( $+commands[zoxide] )); then
local dir=$(
zoxide query --list --score |
fzf --height 40% --layout reverse --info inline \
--nth 2.. --no-sort --query "$*" \
--nth 2.. --tac --no-sort --query "$*" \
--bind 'enter:become:echo {2..}'
) && cd "$dir"
}
@ -194,6 +189,7 @@ alias clear=z4h-clear-screen-soft-bottom
(( $+commands[eza] )) && alias ls=eza
alias git='noglob git' # so that shortcuts like @^ work
alias rake='noglob rake' # don't match on square brackets
alias tat='tmux new-session -As `basename $PWD | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)"`'
alias tree='eza --tree'
# Add flags to existing aliases.

Loading…
Cancel
Save