1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Add ce helper to cd and edit a directory

This commit is contained in:
Holger Just 2025-02-15 11:26:06 +01:00
parent e68ba30ca4
commit 97a4b25bb9
No known key found for this signature in database

View File

@ -256,6 +256,11 @@ c() { with_project "$1" cd; }
# open project in editor
e() { with_project "${1:-.}" "${BACKGROUND_EDITOR} --"; }
ce() {
c "$1"
${BACKGROUND_EDITOR} .
}
# bash completion with with_project and functions using it
_with_project() {
local CDPATH; CDPATH="$(project_dirs):{$CDPATH}"