[ -z "$PS1" ] && return
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\t\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ '
alias pullpush='git pull && git push origin master'
alias pacInstall='yaourt --needed --noconfirm -S --force'
alias pacManualInstall='yaourt --needed -S'
alias pacFileInstall='sudo pacman -U'
alias pacReinstall='sudo pacman -S'
alias pacDownloadOnly='yaourt --needed --noconfirm -Syuw'
alias pacUpdate='yaourt --needed --noconfirm -Syu'alias pacUpdateAur='yaourt --needed --noconfirm -Syu --aur'
alias pacPurge='yaourt -R'
alias pacPurgeSingle='sudo pacman -Rdd'
alias pacList='pacman -Q'
alias pacListFiles='pacman -Ql'
alias pacShow='pacman -Si'
alias pacMirrors='sudo pacman-mirrors -d /etc/pacman.d/mirrors/ -o /etc/pacman.d/mirrorlist -m rank -g'
alias pacMirrorsUpgrade='sudo pacman-mirrors -g && sudo pacman -Syyuu'
alias pacBelongs='pacman -Qo'
alias pacUnlock='sudo rm /var/lib/pacman/db.lck'
alias scp='rsync -avzP'
alias mv_rsync='rsync -avl --remove-source-files --progress'
alias cp_rsync='rsync -arvl –progress'
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export TERM=xterm-256color
export EDITOR=/usr/bin/vim
export PAGER=/usr/bin/most
But of course, make sure that your /etc/pacman.conf already has these lines:
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
Include = /etc/pacman.d/mirrorlist
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
sudo pacman -Syu
sudo pacman -Sy yaourt
pacInstall most vim rsync git
That's it, now your bash has been supercharged :3
No comments :
Post a Comment
THINK: is it True? is it Helpful? is it Inspiring? is it Necessary? is it Kind?