1.1.21 ā¢ Published 1 year ago
extra-cd.sh v1.1.21
Change the working directory, with shortcuts and listing. š Shell, š„ļø Command prompt, š Files.
The cd (or chdir
) is a builtin shell command to change the current
working directory of the shell. This package provides a user-friendly
version of the cd
command, called ecd
. It lists the contents of a
directory upon changing directory, and also provides the ability to save
absolute and relative shortcuts. Please check the examples below.
Stability: Experimental.
# Install on Linux
$ npm install -g extra-cd.sh
$ source "$(which extra-cd)"
# Install on Windows
$ npm install -g extra-cd.cmd
$ ecd [-] [+/-/=<shortcut>] [path]
# [] -> optional argument
# <> -> argument value
# Change to workspace directory
$ ecd /local/mnt/workspace
# Change to up one directory
$ ecd ..
# Stay at current directory (list contents)
$ ecd .
# Change to previous directory
$ ecd -
# Add current directory as shortcut
$ ecd +work
# Change to root directory
$ ecd /
# Change to workspace directory using shortcut
$ ecd =work
# Remove workspace shortcut
$ ecd -work
# Add relative path shortcut
$ ecd +up3 ../../..
# Go up 3 directories
$ ecd =up3
# Remove relative path shortcut
$ ecd -up3
References:
1.1.19
1 year ago
1.1.21
1 year ago
1.1.20
1 year ago
1.1.18
1 year ago
1.1.17
1 year ago
1.1.12
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago