diff --git a/.zshrc b/.zshrc index ab8cd2b..3fa5951 100644 --- a/.zshrc +++ b/.zshrc @@ -147,6 +147,11 @@ # optionally source an external function file [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/fnrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/fnrc" + # cd search: cd to a directory, given part of its name + cds() { + cd **/*"$1"* && pwd + } + # toggles whether a file or group of files is executable chx() { for FILE in "$@";do