Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Bashrc Personalizado Manjaro, otimizado para Void Linux!
- # 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 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'
- # 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;37m\]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement