diff options
author | Mart Lubbers | 2018-01-23 14:24:29 +0100 |
---|---|---|
committer | Camil Staps | 2018-01-23 14:34:55 +0100 |
commit | 83043ea651aa9e3a57b790758a5a4eb7145b362d (patch) | |
tree | 704f4efea0c90a2316343fc8b909bb42491b8d20 /README.md | |
parent | Add 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.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |