@@ -29,6 +29,8 @@ Rust Aliasing Directory
29
29
30
30
Rualdi allows you to create aliases on directories and to provide
31
31
an encapsulation of the built-in ` cd ` command function for easy change of working directory.
32
+ You can also add environment variable which points on an alias.
33
+ All variables sourced in your environment are prefixed by ` RAD_ ` .
32
34
33
35
Inspired by [ ` zoxide ` ] ( https://github.com/ajeetdsouza/zoxide ) code.
34
36
@@ -38,13 +40,33 @@ rada workdir # Add current directory with workdir as alias
38
40
rada www /var/www # Add /var/www directory with www as alias
39
41
rada stuff ~ /stuff # Works with home tild alias
40
42
43
+ radax workdir # Add current directory with workdir as alias
44
+ # and add environment variable named RAD_WORKDIR
45
+ # in current environment and in configuration file
46
+ radax workdir . wd # Add current directory with workdir as alias
47
+ # and add environment variable named RAD_WD
48
+ # in current environment and to the configuration file
49
+
50
+ radx workdir wd # Add environment variable named RAD_WD which points
51
+ # on alias workdir in current environment
52
+ # and to the configuration file
53
+ radx workdir # Add environment variable named RAD_WORKDIR
54
+ # which points on alias workdir in current environment
55
+ # and to the configuration file
56
+
57
+ radxn workdir wd # Add environment variable named RAD_WD which points
58
+ # on alias workdir in current environment
59
+ # without adding it to the configuration file
60
+
41
61
rad www/some-site # Perform cd in /var/www/some-site
42
62
rad - # Go back to previous directory as cd do it
43
63
44
- radr workdir # Remove workdir alias
64
+ radr workdir # Remove workdir alias and environment variable associated if exists
45
65
radr www stuff # Works with multiple aliases at same time
46
66
47
- radl # List aliases
67
+ radxr workdir # Remove environment variable which points on alias workdir
68
+
69
+ radl # List aliases and environment variables
48
70
```
49
71
50
72
## Getting started
0 commit comments