-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchrc
32 lines (27 loc) · 1.13 KB
/
archrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
################################################################################
#
# Author: Gustavo Yokoyama Ribeiro <gyr AT protonmail DOT ch>
# File: archrc
# Update: 20101122 06:45:13
# (C) Copyright 2010 Gustavo Yokoyama Ribeiro
# Licensed under CreativeCommons Attribution-ShareAlike 3.0 Unsupported
# http://creativecommons.org/licenses/by-sa/3.0/ for more info.
# Description: archlinux interactive shell set up
#
################################################################################
###################
# #
# SETUP #
# #
###################
stty erase
export PATH=${GYR_PATH}/bin/arch:${PATH}
###################
# #
# ALIAS #
# #
###################
alias gyr-arch-update-repo='sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.$(date +%Y%m%d_%H%M%S) && sudo reflector -l 10 --sort rate --save /etc/pacman.d/mirrorlist && sudo pacman -Syy'
alias gyr-arch-pacman-sort-by-size="pacman -Qi | awk '/^Name/ {pkg=$3} /Size/ {print $4$5,pkg}' | sort -n"
alias pacmanc='pacman-color'
# vim: set filetype=sh fileformat=unix foldmethod=indent