diff --git a/bashrc b/bashrc index 3c90ed91..e606c812 100644 --- a/bashrc +++ b/bashrc @@ -449,9 +449,11 @@ alias fcorepattern='echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf alias ffmpeg=avconv # inxi https://code.google.com/p/inxi/ -alias inxi-install="cd ~/.local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" +alias inxi-install="mkdir -p ~/.local/bin && cd ~/.local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" +alias inxi-install-root="cd /usr/local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" alias inxi-update="inxi -U" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index c067df51..f02efec7 100644 --- a/zshrc +++ b/zshrc @@ -422,7 +422,8 @@ alias fcorepattern='echo kernel.core_pattern = %e-%p-%h.core >> /etc/sysctl.conf alias ffmpeg=avconv # inxi https://code.google.com/p/inxi/ -alias inxi-install="cd ~/.local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" +alias inxi-install="mkdir -p ~/.local/bin && cd ~/.local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" +alias inxi-install-root="cd /usr/local/bin && \wget -Nc smxi.org/inxi && chmod +x inxi && cd" alias inxi-update="inxi -U"