From cc33e9fda72e1102346034709857fc9f704b6c19 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 3 Feb 2015 22:11:47 -0500 Subject: makepkg: enable ccache if it is available --- .config/pacman/makepkg.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.config/pacman/makepkg.conf b/.config/pacman/makepkg.conf index 8dc4536..8389fb5 100644 --- a/.config/pacman/makepkg.conf +++ b/.config/pacman/makepkg.conf @@ -1,3 +1,5 @@ +#!/phony/bash + PKGDEST="${LIBREHOME:-$HOME}/packages/pkgdest" SRCDEST="${LIBREHOME:-$HOME}/packages/srcdest" SRCPKGDEST="${LIBREHOME:-$HOME}/packages/srcpkgdest" @@ -6,3 +8,17 @@ LOGDEST="${LIBREHOME:-$HOME}/packages/logdest" PACKAGER="Luke Shumaker " MAKEFLAGS="-j3" + +if type ccache &>/dev/null; then + f=false + for i in "${!BUILDENV[@]}"; do + if [[ "${BUILDENV[$i]}" == '!ccache' ]]; then + BUILDENV[$i]='ccache' + f=true + fi + done + if [[ $f == false ]]; then + BUILDENV+=('ccache') + fi + unset f i +fi -- cgit v1.2.3 From 5acf00ac41f711d4102d3c29e63fa705136f8f42 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 3 Feb 2015 22:12:53 -0500 Subject: bash: add dir_colors overrides --- .config/bash/aliases.sh | 3 ++- .config/dir_colors | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .config/dir_colors diff --git a/.config/bash/aliases.sh b/.config/bash/aliases.sh index fe4f2c6..4b87332 100644 --- a/.config/bash/aliases.sh +++ b/.config/bash/aliases.sh @@ -6,7 +6,8 @@ # Set up colors and settings for ls/dir/vdir # ###################################################################### if [ -x "`which dircolors`" ]; then - eval "`dircolors -b`" + eval "$(dircolors -p | cat - "${XDG_CONFIG_HOME}/dir_colors" | + dircolors -b -)" alias ls='ls -1v --color=auto' alias dir='dir -v --color=auto' alias vdir='vdir -v--color=auto' diff --git a/.config/dir_colors b/.config/dir_colors new file mode 100644 index 0000000..80484e8 --- /dev/null +++ b/.config/dir_colors @@ -0,0 +1 @@ +OTHER_WRITABLE 01;34;45 -- cgit v1.2.3 From 26c23840ee5780b8444423e74607187f000a0877 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 3 Feb 2015 22:13:07 -0500 Subject: bash: fix an old typo in aliases --- .config/bash/aliases.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/bash/aliases.sh b/.config/bash/aliases.sh index 4b87332..28b9923 100644 --- a/.config/bash/aliases.sh +++ b/.config/bash/aliases.sh @@ -10,7 +10,7 @@ if [ -x "`which dircolors`" ]; then dircolors -b -)" alias ls='ls -1v --color=auto' alias dir='dir -v --color=auto' - alias vdir='vdir -v--color=auto' + alias vdir='vdir -v --color=auto' for xgrep in ${PATH//:/\/*grep }/*grep; do if [ -f "$xgrep" ]; then -- cgit v1.2.3