zsh: add cds() function (cd search) to cd to a buried directory or any
directory given part of its name
This commit is contained in:
parent
680295eeed
commit
bb1bbcfd37
1 changed files with 5 additions and 0 deletions
5
.zshrc
5
.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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue