mirror of
https://github.com/meineerde/dotfiles.git
synced 2026-03-23 17:19:53 +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
|
# open project in editor
|
||||||
e() { with_project "${1:-.}" "${BACKGROUND_EDITOR} --"; }
|
e() { with_project "${1:-.}" "${BACKGROUND_EDITOR} --"; }
|
||||||
|
|
||||||
|
ce() {
|
||||||
|
c "$1"
|
||||||
|
${BACKGROUND_EDITOR} .
|
||||||
|
}
|
||||||
|
|
||||||
# bash completion with with_project and functions using it
|
# bash completion with with_project and functions using it
|
||||||
_with_project() {
|
_with_project() {
|
||||||
local CDPATH; CDPATH="$(project_dirs):{$CDPATH}"
|
local CDPATH; CDPATH="$(project_dirs):{$CDPATH}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user