From c7bee847254ae8ab4cb6e7ff3a536f053659c0fa Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 15 Jan 2024 19:47:05 -0800 Subject: [PATCH] z4h --- .zshrc | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.zshrc b/.zshrc index 7dd35b3..7b6f572 100644 --- a/.zshrc +++ b/.zshrc @@ -98,26 +98,12 @@ autoload -Uz zmv function md() { [[ $# == 1 ]] && mkdir -p -- "$1" && cd -- "$1" } compdef _directories md -# https://github.com/romkatv/powerlevel10k/issues/254#issuecomment-539959233 -# function zsh_directory_name() { -# emulate -L zsh -# [[ $1 == d ]] || return -# while [[ $2 != / ]]; do -# if [[ -e $2/.git ]]; then -# typeset -ga reply=(${2:t} $#2) -# return -# fi -# 2=${2:h} -# done -# return 1 -# } - # Define named directories: ~w <=> Windows home directory on WSL. # [[ -z $z4h_win_home ]] || hash -d w=$z4h_win_home # Define aliases. alias clear=z4h-clear-screen-soft-bottom -alias ls=eza +(( $+commands[eza] )) && alias ls=eza 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='tree -a -I .git'