dotfiles/modules/home/zsh/functions.zsh

13 lines
198 B
Bash

#!/usr/bin/env zsh
# My custom zsh functions
fzf-z() {
dir=$(z | fzf --tiebreak=index --tac | sed -E 's/^[0-9]+[[:space:]]+//')
cd $dir
}
mkcd ()
{
mkdir -p -- "$1" && cd -P -- "$1"
}