]> git.huck.website - zsh.git/commitdiff
fixed: zoxide-cd alias wsl
authorHuck Boles <huck.boles@metalplasmatechnology.com>
Wed, 10 Jan 2024 15:32:17 +0000 (07:32 -0800)
committerHuck Boles <huck.boles@metalplasmatechnology.com>
Wed, 10 Jan 2024 15:32:17 +0000 (07:32 -0800)
.zshrc
include/aliases.zsh

diff --git a/.zshrc b/.zshrc
index 4acfa8d38c4fe2de80f1a3d6f4920fbb8bc8770a..e8f247af0862c2d6a323022cde79fbdc38acfa24 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -37,7 +37,10 @@ for file in $ZSHINCLUDE/*; do . ${file}; done
 
 # start programs
 [[ -f $XDG_CONFIG_HOME/.dircolors ]] && eval $(dircolors -b $XDG_CONFIG_HOME/.dircolors)
-[[ $(which zoxide) ]] && eval "$(zoxide init zsh --cmd z)"
+if [[ $(which zoxide) ]]; then
+    eval "$(zoxide init zsh)"
+    alias cd='z'
+fi
 
 # zle plugins
 autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
index cee2d6b805efed43b34d927f4169b248ba20138f..773dc5e0b1db077140f68cfb68a26f18759fcff2 100644 (file)
@@ -25,10 +25,7 @@ alias h='history 0'
 alias j='jobs -l'
 alias c='clear'
 alias zc='cd;clear'
-# alias cd='z '
-# alias rename='perl-rename'
 
-alias make='make -j16 -l6 CFLAGS="-march=bdver1"'
 alias dust='dust -rb'
 
 alias ls='lsd'