Skip to content

Instantly share code, notes, and snippets.

@abbotto
Created September 4, 2015 23:37
Show Gist options
  • Save abbotto/ebd2ef66ae8a976d19c6 to your computer and use it in GitHub Desktop.
Save abbotto/ebd2ef66ae8a976d19c6 to your computer and use it in GitHub Desktop.
.bashrc file for antergos
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
# Aliases
# Shortcut to pacmatic
alias pkg='sudo pacmatic'
# Synchronize with repositories and then upgrade packages that are out of date on the local system.
alias pkg-upgrade='sudo pacmatic -Syu'
# Download specified package(s) as .tar.xz ball
alias pkg-dl='pacmatic -Sw'
# Install specific package(s) from the repositories
alias pkg-install='sudo pacmatic -S'
# Install specific package not from the repositories but from a file
alias pkg-install-bin='sudo pacmatic -U'
# Remove the specified package(s), retaining its configuration(s) and required dependencies
alias pkg-remove='sudo pacmatic -R'
# Remove the specified package(s), its configuration(s) and unneeded dependencies
alias pkg-remove-all='sudo pacmatic -Rns'
# Display information about a given package in the repositories
alias pkg-repo='pacmatic -Si'
# Display information about a given package in the local database
alias pkg-local='pacmatic -Qi'
# Search for package(s) in the repositories
alias pkg-find='pacmatic -Ss'
# Search for package(s) in the local database
alias pkg-find-local='pacmatic -Qs'
# List all packages which are orphaned
alias pkg-orphan="pacmatic -Qdt"
# Clean cache - delete all the package files in the cache
alias pkg-wipe="sudo pacmatic -Scc"
# List all files installed by a given package
alias pkg-file="pacmatic -Ql"
# Show package(s) owning the specified file(s)
alias pkg-own="pacmatic -Qo"
# Mark one or more installed packages as explicitly installed
alias pkg-explicit="pacmatic -D --asexp"
# Mark one or more installed packages as non explicitly installed
alias pkg-implicit="pacmatic -D --asdep"
# Update and refresh the local package and ABS databases against repositories
alias pkg-update='sudo pacmatic -Sy && sudo abs'
# Install given package(s) as dependencies
alias pkg-dependancy='sudo pacmatic -S --asdeps'
# Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
alias pkg-refresh='sudo pacmatic -Syy'
# Reset Mirrors
# http://forum.antergos.com/topic/1169/solved-mirrorlist/3
# https://wiki.archlinux.org/index.php/Reflector
# The following command will filter the first five mirrors, sort them by download rate and overwrite the file /etc/pacman.d/mirrorlist
# http://forum.antergos.com/topic/2178/solved-could-not-open-file-var-lib-pacman-sync-core-db-unrecognized-archive-format
alias reset-mirrors='sudo reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment