mirror of
https://github.com/tj/n.git
synced 2024-11-28 10:26:23 +01:00
Added - alias of rm
This commit is contained in:
parent
acea331b67
commit
e2ce5084e6
@ -34,6 +34,10 @@ Remove some versions:
|
|||||||
|
|
||||||
$ n rm 0.2.4 0.3.0
|
$ n rm 0.2.4 0.3.0
|
||||||
|
|
||||||
|
Instead of using `rm` we can simply use `-`:
|
||||||
|
|
||||||
|
$ n - 0.2.4
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Output from `n --help`:
|
Output from `n --help`:
|
||||||
|
2
bin/n
2
bin/n
@ -180,7 +180,7 @@ else
|
|||||||
case $1 in
|
case $1 in
|
||||||
-V|--version) display_n_version ;;
|
-V|--version) display_n_version ;;
|
||||||
-h|--help) display_help ;;
|
-h|--help) display_help ;;
|
||||||
rm) shift; remove_version $@; exit ;;
|
rm|-) shift; remove_version $@; exit ;;
|
||||||
*) install_node $@; exit ;;
|
*) install_node $@; exit ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
Loading…
Reference in New Issue
Block a user