https://github.com/andreax79/cdepth
Change working directory depth
https://github.com/andreax79/cdepth
Last synced: 8 months ago
JSON representation
Change working directory depth
- Host: GitHub
- URL: https://github.com/andreax79/cdepth
- Owner: andreax79
- Created: 2013-07-01T07:24:12.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-01T09:31:53.000Z (almost 13 years ago)
- Last Synced: 2025-01-09T09:28:28.778Z (over 1 year ago)
- Language: Shell
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
cdepth(1) User Commands cdepth(1)
NAME
cdepth - change working directory depth
SYNOPSIS
cdepth [depth]
DESCRIPTION
Change the working directory to a higher directory level. Depth can be
relative (e.g. -1 change the working directory to the parent directory)
or absolute, where 0 is the root directory.
Without arguments display the absolute and relative directories depths.
INSTALL
Put something like this in your .bashrc/.zshrc:
. /path/to/cdepth.sh
EXAMPLES
/home/andreax/Devel/cdepth$ cdepth
4 -0 /home/andreax/Devel/cdepth
3 -1 /home/andreax/Devel
2 -2 /home/andreax
1 -3 /home
0 -4 /
/home/andreax/Devel/cdepth$ cdepth -2
/home/andreax/$ chdepth 0
/$
AUTHOR
Copyright (c) 2013, Andrea Bonomi
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Soft-
ware"), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the following condi-
tions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
SEE ALSO
z, cdargs, autojump
July 1, 2013