Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Bashrc Personalizado Manjaro
- # Baseado no original com algumas personalizações
- if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- xhost +local:root > /dev/null 2>&1
- complete -cf sudo
- shopt -s cdspell
- shopt -s checkwinsize
- shopt -s cmdhist
- shopt -s dotglob
- shopt -s expand_aliases
- shopt -s extglob
- shopt -s histappend
- shopt -s hostcomplete
- export HISTSIZE=10000
- export HISTFILESIZE=${HISTSIZE}
- export HISTCONTROL=ignoreboth
- export JAVA_FONTS=/usr/share/fonts/TTF
- export EDITOR=/usr/bin/nano
- alias screenfetch="screenfetch -E"
- alias screenfetch-scrot="screenfetch -E -s"
- alias cls="clean"
- alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias grep='grep --color=tty -d skip'
- alias cp="cp -i" # confirm before overwriting something
- alias df='df -h' # human-readable sizes
- alias free='free -m' # show sizes in MB
- alias np='nano PKGBUILD'
- alias fixit='sudo rm -f /var/lib/pacman/db.lck && sudo pacman-mirrors -g && sudo pacman -Syyuu &&
- sudo pacman -Suu'
- # Optimized yaourt:
- alias yaconf='yaourt -C' # Fix all configuration files with vimdiff
- alias yaupg='yaourt -Syua' # Synchronize with repositories before upgrading packages (AUR packages too) that are out of date on the local system.
- alias yasu='yaourt --sucre' # Same as yaupg, but without confirmation
- alias yain='yaourt -S' # Install specific package(s) from the repositories
- alias yains='yaourt -U' # Install specific package not from the repositories but from a file
- alias yare='yaourt -R' # Remove the specified package(s), retaining its configuration(s) and required dependencies
- alias yarem='yaourt -Rns' # Remove the specified package(s), its configuration(s) and unneeded dependencies
- alias yarep='yaourt -Si' # Display information about a given package in the repositories
- alias yareps='yaourt -Ss' # Search for package(s) in the repositories
- alias yaloc='yaourt -Qi' # Display information about a given package in the local database
- alias yalocs='yaourt -Qs' # Search for package(s) in the local database
- alias yalst='yaourt -Qe' # List installed packages, even those installed from AUR (they're tagged as "local")
- alias yaorph='yaourt -Qtd' # Remove orphans using yaourt
- alias yaupd='yaourt -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories
- alias yainsd='yaourt -S --asdeps' # Install given package(s) as dependencies of another package
- alias yamir='yaourt -Syy' # Force refresh of all package lists after updating
- # ex - archive extractor
- # usage: ex <file>
- ex ()
- {
- if [ -f $1 ] ; then
- case $1 in
- *.tar.bz2) tar xjf $1 ;;
- *.tar.gz) tar xzf $1 ;;
- *.bz2) bunzip2 $1 ;;
- *.rar) unrar x $1 ;;
- *.gz) gunzip $1 ;;
- *.tar) tar xf $1 ;;
- *.tbz2) tar xjf $1 ;;
- *.tgz) tar xzf $1 ;;
- *.zip) unzip $1 ;;
- *.Z) uncompress $1;;
- *.7z) 7z x $1 ;;
- *) echo "'$1' cannot be extracted via ex()" ;;
- esac
- else
- echo "'$1' is not a valid file"
- fi
- }
- # prompt
- #PS1='[\u@\h \W]\$ ' # Default
- PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;92m\]' # Light Green
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement