From 83043ea651aa9e3a57b790758a5a4eb7145b362d Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 23 Jan 2018 14:24:29 +0100 Subject: 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. --- README.md | 6 ++++-- 1 file 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 -- cgit v1.2.3