Last active
August 29, 2015 14:20
-
-
Save Saren-Arterius/75d1a7ed1f88d50c9d85 to your computer and use it in GitHub Desktop.
My alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VISUAL=nano | |
alias suy='sudo pacman -Suy' | |
alias syu='sudo pacman -Syu' | |
alias sta='sudo systemctl start' | |
alias sto='sudo systemctl stop' | |
alias stt='sudo systemctl status' | |
alias rst='sudo systemctl restart' | |
alias enb='sudo systemctl enable' | |
alias dsb='sudo systemctl disable' | |
alias s='sudo pacman -S' | |
alias i='sudo pacman -S' | |
alias r='sudo pacman -R' | |
alias rmud='sudo pacman -Rsn $(pacman -Qdtq)' | |
alias rmop='sudo pacman -Rns $(pacman -Qtdq)' | |
alias aur='yaourt' | |
alias sudo='sudo ' | |
alias ls='ls -l -h --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' | |
## Colorize the grep command output for ease of use (good for log files)## | |
alias grep='grep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
## Create parent directories on demand | |
alias mkdir='mkdir -pv' | |
alias now='date +"%T"' | |
alias sna='sudo nano' | |
alias iotop='sudo iotop' | |
alias iftop='sudo iftop' | |
# do not delete / or prompt if deleting more than 3 files at a time # | |
alias rm='rm -I --preserve-root' | |
# confirmation # | |
alias mv='mv -i' | |
alias cp='cp -i' | |
alias ln='ln -i' | |
# Parenting changing perms on / # | |
alias chown='chown --preserve-root' | |
alias chmod='chmod --preserve-root' | |
alias chgrp='chgrp --preserve-root' | |
# become root # | |
alias root='sudo -i' | |
alias su='sudo su - -s /bin/zsh' | |
## this one saved by butt so many times ## | |
alias wget='wget -c' | |
alias runnow='sh sh/runnow.sh' | |
alias iown='sudo chown -R $(whoami):$(whoami)' | |
alias drld='sudo systemctl daemon-reload' | |
alias htop='htop -d 5' | |
alias yolo='sudo yaourt -Suya --noconfirm' | |
alias gitlab-update='sudo -u gitlab -s /bin/sh -c "cd /usr/share/webapps/gitlab; bundle exec rake db:migrate RAILS_ENV=production"; sudo -u gitlab -s /bin/sh -c "cd /usr/share/webapps/gitlab; bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment