Skip to content

Commit

Permalink
GHI-#4 Implement package configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Jan 18, 2017
1 parent b3d195b commit fa814ab
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 0 deletions.
48 changes: 48 additions & 0 deletions snowblocks/bash/config/pkg/grep
Original file line number Diff line number Diff line change
@@ -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"
51 changes: 51 additions & 0 deletions snowblocks/bash/config/pkg/history
Original file line number Diff line number Diff line change
@@ -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"
52 changes: 52 additions & 0 deletions snowblocks/bash/config/pkg/java
Original file line number Diff line number Diff line change
@@ -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"
54 changes: 54 additions & 0 deletions snowblocks/bash/config/pkg/less
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit fa814ab

Please sign in to comment.