mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-01 23:34:03 +01:00
bashrc & zshrc: fix alias inxi-install & add alias inxi-install-root
1. Previously the Alias failed if the directory ~/.local/bin didn't exist. 2. Add Alias inxi-install-root for global installation as root.
This commit is contained in:
parent
cb13e192a2
commit
14a1608707
4
bashrc
4
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
|
||||
|
3
zshrc
3
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"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user