From fa814abaf5e4ddd4a9bb974460130183c6d8f9e0 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Wed, 18 Jan 2017 13:28:40 +0100 Subject: [PATCH] GHI-#4 Implement package configurations --- snowblocks/bash/config/pkg/grep | 48 ++++++++++++++++++++++++++ snowblocks/bash/config/pkg/history | 51 ++++++++++++++++++++++++++++ snowblocks/bash/config/pkg/java | 52 ++++++++++++++++++++++++++++ snowblocks/bash/config/pkg/less | 54 ++++++++++++++++++++++++++++++ 4 files changed, 205 insertions(+) create mode 100644 snowblocks/bash/config/pkg/grep create mode 100644 snowblocks/bash/config/pkg/history create mode 100644 snowblocks/bash/config/pkg/java create mode 100644 snowblocks/bash/config/pkg/less diff --git a/snowblocks/bash/config/pkg/grep b/snowblocks/bash/config/pkg/grep new file mode 100644 index 0000000..42cd4ad --- /dev/null +++ b/snowblocks/bash/config/pkg/grep @@ -0,0 +1,48 @@ +#!/usr/bin/env bash +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# title grep Configuration + +# project igloo + +# repository https://github.com/arcticicestudio/igloo + +# author Arctic Ice Studio + +# email development@arcticicestudio.com + +# copyright Copyright (C) 2017 + +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# +# [References] +# GNU grep +# (http://www.gnu.org/software/grep/manual/grep.html) +# terminfo(5) + +# +--------+ +# + Colors + +# +--------+ +# Set the terminfo capabilitiy substrings for the color environment variable interpreted by the "termcap" compatibility +# application interface. +# +# "sl" +# Whole selected lines. Default is empty. +# "cx" +# Whole context lines. Default is empty. +# "rv" +# Boolean value that reverses (swaps) the meanings of the "sl" and "cx" capabilities. Default is "false". +# "mt" +# Matching non-empty text in any matching line. +# "ms" +# Matching non-empty text in a selected line. +# "mc" +# Matching non-empty text in a context line. +# "fn" +# File names prefixing any content line. +# "ln" +# Line numbers prefixing any content line. +# "bn" +# Byte offsets prefixing any content line. +# "se" +# Separators that are inserted between +# - selected line fields (':') +# - context line fields ('-') +# - groups of adjacent lines when nonzero context is specified ("--") +# "ne" +# Boolean value that prevents clearing to the end of line using erase in line (EL) to Right ("\33[K") each time a +# colorized item ends. +export GREP_COLORS="fn=34:mt=01;34:ln=01;30:se=30" diff --git a/snowblocks/bash/config/pkg/history b/snowblocks/bash/config/pkg/history new file mode 100644 index 0000000..7d5abb4 --- /dev/null +++ b/snowblocks/bash/config/pkg/history @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# title history Configuration + +# project igloo + +# repository https://github.com/arcticicestudio/igloo + +# author Arctic Ice Studio + +# email development@arcticicestudio.com + +# copyright Copyright (C) 2017 + +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# +# [References] +# terminfo(5) +# ISO-8601 +# (http://www.iso.org/iso/home/standards/iso8601.htm) + +# +--------+ +# + Output + +# +--------+ +# Sets the amount of entries to be unlimited. +export HISTSIZE="" + +# Sets the filesize to be unlimited. +export HISTFILESIZE="" + +# Creates the log destination folder and sets the filename based on the current date. +if [ ! -d $UMIAQ_HOME/.log ]; then + mkdir $UMIAQ_HOME/.log +fi +HISTFILE=$UMIAQ_HOME/.log/`\date "+%Y-%m-%d"` + +# +--------+ +# + Format + +# +--------+ +# Use ISO-8681 time format. +export HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S UTC%z] " + +# Define commands that should be ignored. +# The commands must be separated by a double point and include the exact option- and flag parameters! +export HISTIGNORE="pwd:ls:ls -ltr:ls -lAhF:cd ..:.." + +# Sets the control filter. +# +# "ignoredups" +# Ignores duplicates +# "ignorespace" +# Ignores commands beginning with a space character +# "ignoreboth" +# Implies "ignoredups" and "ignorespace" +# "erasedups" +# Erase duplicates across the whole history +export HISTCONTROL="ignoreboth" diff --git a/snowblocks/bash/config/pkg/java b/snowblocks/bash/config/pkg/java new file mode 100644 index 0000000..69397ee --- /dev/null +++ b/snowblocks/bash/config/pkg/java @@ -0,0 +1,52 @@ +#!/usr/bin/env bash +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# title Java Configuration + +# project igloo + +# repository https://github.com/arcticicestudio/igloo + +# author Arctic Ice Studio + +# email development@arcticicestudio.com + +# copyright Copyright (C) 2017 + +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# +# [References] +# StackOverflow +# (http://stackoverflow.com/questions/28327620/difference-between-java-options-java-tool-options-and-java-opts) +# Oracle JDK 8 +# (http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#aaFonts) +# (http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html#xrender) +# NetBeans Wiki +# (http://wiki.netbeans.org/FaqFontRendering) +# java(1) +# javac(1) + +# Sets the default system-wide JVM options. +# +# "-Dawt.useSystemAAFontSettings" +# Use system settings for font anti-aliasing. +# "-Dsun.java2d.xrender" +# Enable the XRender-based Java 2D rendering pipeline for modern X11-based desktops, offering improved graphics +# performance. +# "-Dswing.aatext" +# Enable the font anti-aliasing for Swing-based applications. +# +# Constant names in braces are values for the "java.awt.RenderingHint" class. +# +# > awt.useSystemAAFontSettings +# "off" | "false" | "default" ("VALUE_TEXT_ANTIALIAS_DEFAULT") +# No anti-aliasing. +# "on" ("VALUE_TEXT_ANTIALIAS_ON") +# Full anti-aliasing without sub-pixel rendering +# "gasp" ("VALUE_TEXT_ANTIALIAS_GASP") +# Use the font's built-in hinting instructions with sub-pixel rendering, intended for use both on CRT and LCD . +# "lcd" | "lcd_hrgb" ("VALUE_TEXT_ANTIALIAS_LCD_HRGB") +# Anti-aliasing tuned for many popular LCD monitors with sub-pixel rendering, optimized for LCD. +# "lcd_hbgr" ("VALUE_TEXT_ANTIALIAS_LCD_HBGR") +# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (monitor upside +# down). +# "lcd_vrgb" ("VALUE_TEXT_ANTIALIAS_LCD_VRGB") +# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (monitor is +# vertical). +# "lcd_vbgr" ("VALUE_TEXT_ANTIALIAS_LCD_VBGR") +# Alternative LCD monitor setting. Same as "lcd", but with different distribution of sub pixels (vertical again but +# on other side). +export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.xrender=true -Dswing.aatext=true" diff --git a/snowblocks/bash/config/pkg/less b/snowblocks/bash/config/pkg/less new file mode 100644 index 0000000..4d73d75 --- /dev/null +++ b/snowblocks/bash/config/pkg/less @@ -0,0 +1,54 @@ +#!/usr/bin/env bash +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# title less Configuration + +# project igloo + +# repository https://github.com/arcticicestudio/igloo + +# author Arctic Ice Studio + +# email development@arcticicestudio.com + +# copyright Copyright (C) 2017 + +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# +# [References] +# GNU less +# (https://www.gnu.org/software/less) +# terminfo(5) + +# Use lesspipe(1) for non-text input. +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# +--------+ +# + Colors + +# +--------+ +# Sets the terminfo variables of the termcap compatibility application interface. +# Provides colored output for the "man" command. +# +# Escape Sequences Comparision Table +# ================================== +# termcap terminfo function +# ------- -------- -------- +# ks smkx Send commands via keypad +# ke rmkx Send digits via keypad +# vb flash Emit visual bell +# mb blink Start blink +# md bold Start bold +# me sgr0 Turn off bold, blink and underline +# so smso Start standout (reverse video) +# se rmso Stop standout +# us smul Start underline +# ue rmul Stop underline +# +--- Blink ---+ +export LESS_TERMCAP_mb=$'\e[01;34m' + +# +--- Keywords ---+ +export LESS_TERMCAP_md=$'\e[01;34m' + +# +--- Mode Stop ---+ +export LESS_TERMCAP_me=$'\e[0m' + +# +--- Standout-Mode (Info Box) ---+ +export LESS_TERMCAP_so=$'\e[01;30m' +export LESS_TERMCAP_se=$'\e[0m' + +# +--- Constants ---+ +export LESS_TERMCAP_us=$'\e[01;34m' +export LESS_TERMCAP_ue=$'\e[0m'