mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Add 'cdi', a function to edit current working path
This commit is contained in:
parent
57fcee0f1c
commit
8430d076e5
1 changed files with 20 additions and 0 deletions
20
plugins/cdi/cdi.plugin.zsh
Normal file
20
plugins/cdi/cdi.plugin.zsh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# vim: set sw=4 expandtab:
|
||||
#
|
||||
# Licence: GPL
|
||||
# Created: 2016-09-27 14:41:53+02:00
|
||||
# Main authors:
|
||||
# - Jérôme Pouiller <jezz@sysmic.org>
|
||||
#
|
||||
# "Change Directory Interactive"
|
||||
#
|
||||
# Allow to change directory by editing current working directory path.
|
||||
#
|
||||
|
||||
cdi() {
|
||||
local _TMP=$PWD
|
||||
vared _TMP
|
||||
cd $_TMP
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue