Hey guys. Recently, (possibly as of zsh 4.3.15), whenever I'm in ~, zsh has been prompting me to autocorrect sudo vim $filename to sudo .vim $filenameWithout "sudo", zsh makes no attempt to uncorrect "vim", which vaguely reminds me of having a sudo="sudo " alias in bash to get autocompletion working for sudo commands.
alias bashrc='nano ~/.bashrc'
alias reload='source ~/.bashrc'
alias ls='ls --color=auto'
alias grep='grep -n --color=auto'
alias pacman='sudo pacman'
alias update='sudo pacman -Syu'
alias search='sudo pacman -Ss'
alias install='sudo pacman -S'
alias remove='sudo pacman -Rns'
alias makepkg='makepkg -s -
Hi, I have an alias created in my .bashrc file to update my archlinux, use reflector on it as follows ...alias u="sudo reflector --sort rate -l 10 -f 5 --save /etc/pacman.d/mirrorlist && yaourt -Syyu --aur"By upgrading reflector recently, it has stopped working with sudo.
Hi,
I started writing some aliases but there's a special situation I'm not sure how to handle. I need to have aliases with the same alias name, one for when I'm logged as root and one when logged under my user name.
We have a thread for vim tricks, a thread for xdefaults, a thread for twmn and yet not one for the aliasses we use.It should be interresting to see the aliases other #!ers use.So here are mine:#file compressing/decompressing
alias guntar="tar -xzvf"
alias untar="tar -xvf"
alias targ="tar -cvzf"
alias buntar="tar -jvxf"
#if i invoke emacs from the terminal, s
I've developed a bad habit of constantly sudoing to root. I was wondering if its possible to create an alias that prevents straight sudo but allows sudo -u. Or possibly echoes a warning when using sudo?
Hello!
Do anyone have idea how to block switching to root if user have full sudo?
One way is in sudoers file block use of "su", but still it`s possible with sudo -i or sudo -s , sudo bash etc.
Other way is create alias on sudoers and permit only specific commands for user.
Any ideas?
In the terminal, I entered
sudo deluser myself sudo
and
sudo deluser myself admin
Why do I still have root privileges under this user?
I made a new user and added it to "sudo" and "admin." I want to have someone else set the password for it, so I can lock myself out of the hosts file when URLs are blocked.
recently, after a regular update/upgrade (i actually were using Wheezy from a long time from Crunchbang), when i enter "sudo synaptic" at the terminal, i get:Invalid MIT-MAGIC-COOKIE-1 key
(synaptic:3248): Gtk-WARNING **: cannot open display: :0and the same when i try "sudo pluma", "sudo gedit", "sudo caja --no-desktop", "sudo gedit --no-desktop",