mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[shell/aliases] fix sublime and start fwupdmgr with sudo
This commit is contained in:
parent
d5ca3a656a
commit
0dec178ad8
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
#alias definitions
|
#alias definitions
|
||||||
alias cd..="cd .."
|
alias cd..="cd .."
|
||||||
alias gits="git status"
|
alias gits="git status"
|
||||||
alias subl='subl3'
|
alias subl='sublime3'
|
||||||
|
|
||||||
alias les="less"
|
alias les="less"
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ io(){
|
||||||
|
|
||||||
if [ ! -z "$(type sudo 2>/dev/null)" -a "$USER" != 'root' ]; then
|
if [ ! -z "$(type sudo 2>/dev/null)" -a "$USER" != 'root' ]; then
|
||||||
#create sudo aliases WITHOUT leading s
|
#create sudo aliases WITHOUT leading s
|
||||||
for sudo in mount umount iftop iotop fsadm lvchange lvconvert lvcreate lvdisplay lvextend lvm lvmchange lvmconf lvmconfig lvmdiskscan lvmdump lvmetad lvmsadc lvmsar lvreduce lvremove lvrename lvresize lvs lvscan pvchange pvck pvcreate pvdisplay pvmove pvremove pvresize pvs pvscan vgcfgbackup vgcfgrestore vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend vgimport vgimportclone vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan vgsplit;
|
for sudo in fwupdmgr mount umount iftop iotop fsadm lvchange lvconvert lvcreate lvdisplay lvextend lvm lvmchange lvmconf lvmconfig lvmdiskscan lvmdump lvmetad lvmsadc lvmsar lvreduce lvremove lvrename lvresize lvs lvscan pvchange pvck pvcreate pvdisplay pvmove pvremove pvresize pvs pvscan vgcfgbackup vgcfgrestore vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend vgimport vgimportclone vgmerge vgmknodes vgreduce vgremove vgrename vgs vgscan vgsplit;
|
||||||
do
|
do
|
||||||
type $sudo > /dev/null 2>&1 && alias $sudo="sudo $sudo";
|
type $sudo > /dev/null 2>&1 && alias $sudo="sudo $sudo";
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue