aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMart Lubbers2018-01-23 14:24:29 +0100
committerCamil Staps2018-01-23 14:34:55 +0100
commit83043ea651aa9e3a57b790758a5a4eb7145b362d (patch)
tree704f4efea0c90a2316343fc8b909bb42491b8d20 /README.md
parentAdd a local lib directory (diff)
Update alias to a function
There is no such thing as delayed variable expansion in aliasses so it has to be a function when you always want to mount the local directory.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index b30d4f5..788076b 100644
--- a/README.md
+++ b/README.md
@@ -30,10 +30,12 @@ You can add imports by creating a template in `~/.iclean_template`, then adding
If you care about hard disk wear, add `--tmpfs /tmp:exec,size=1024k` to have iClean build on a ramdisk.
-Make all this an alias:
+Make all this a handy bash function:
```
-alias iclean="docker run --rm -it --tmpfs /tmp:exec,size=1024k -v "$PWD":/opt/clean/lib/Local -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean"
+iclean(){
+ docker run --rm -it --tmpfs /tmp:exec,size=1024k -v "$PWD":/opt/clean/lib/Local -v ~/.iclean_history:/home/.iclean_history -v ~/.iclean_template:/home/.iclean_template camilstaps/iclean
+}
```
## Without Docker