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:
parent
e68ba30ca4
commit
97a4b25bb9
5
.bashrc
5
.bashrc
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user