Showing preview only (2,235K chars total). Download the full file or copy to clipboard to get everything.
Repository: adben/config
Branch: master
Commit: 13f8644fb3b4
Files: 25
Total size: 2.1 MB
Directory structure:
gitextract_vl5y1mi7/
├── .Xdefaults
├── .bashrc
├── .gitconfig
├── .gitignore
├── .spacemacs
├── .zshenv
├── .zshrc
├── Brewfile
├── Custom.css
├── Custom_flymake.css
├── README.md
├── VPN-Unified-Cloud-Formation.json
├── adben-new.zsh-theme
├── adben.zsh-theme
├── bullet-train.zsh-theme
├── daily_stuff.sh
├── dk-tomorrow-night.icls
├── fira.sh
├── gnome-classic.css
├── hosts
├── idea.properties
├── idea64.vmoptions
├── netbeans.conf
├── sonar.properties
└── userChrome.css
================================================
FILE CONTENTS
================================================
================================================
FILE: .Xdefaults
================================================
URxvt*termName: rxvt
URxvt.perl-ext-common: default,matcher,readline,selection-to-clipboard,tabbedex,searchable-scrollback<M-s>
!!URxvt.reverseVideo: true
!!URxvt.perl-ext-common: selection-to-clipboard
## borderless and no scrollbar
! URxvt*scrollBar_right: false
! URxvt*scrollBar: false
! URxvt*borderLess: false
URxvt.scrollstyle: plain
URxvt.borderColor: #000030
URxvt.internalBorder: 1
URxvt.saveLines: 4095
! URxvt*iconFile: /usr/share/icons/Paper/32x32/apps/gnome-terminal.png
## transparency
URxvt*inheritPixmap: true
URxvt*tintColor: white
URxvt*shading: 100
## URL follow
URxvt.url-Launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
##tabs
! URxvt.keysym.Control-Alt-t: perl:tabbedex:new_tab
! URxvt.keysym.Shift-Right: perl:tabbedex:next_tab
! URxvt.keysym.Shift-Left: perl:tabbedex:prev_tab
URxvt.colorUL: #4682B4
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.autohide: yes
URxvt.tabbed.new-button: no
URxvt.tabbed.title: yes
## geometry and font
URxvt*geometry: 80×15
URxvt*font: xft:Fira Code:pixelsize=25
! Pointer
URxvt.pointerBlank: true
!! https://gist.github.com/yevgenko/1167205
!!Source http://github.com/altercation/solarized
*background: #002b36
*foreground: #657b83
!!*fading: 40
*fadeColor: #002b36
*cursorColor: #93a1a1
*pointerColorBackground: #586e75
*pointerColorForeground: #93a1a1
!! black dark/light
*color0: #073642
*color8: #002b36
!! red dark/light
*color1: #dc322f
*color9: #cb4b16
!! green dark/light
*color2: #859900
*color10: #586e75
!! yellow dark/light
*color3: #b58900
*color11: #657b83
!! blue dark/light
*color4: #268bd2
*color12: #839496
!! magenta dark/light
*color5: #d33682
*color13: #6c71c4
!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1
!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3
================================================
FILE: .bashrc
================================================
#######################################################
# Adolfo Benedetti's .bashrc file,
# adolfo.benedetti@gmail.com
# a.benedetti@sourcesense.com
# based on Dave Crouse's .bashrc www.usalug.org
# www.bashscripts.org
# Last Modified sep 3 2010
# Running on ubuntu 10.10 beta1
#######################################################
# EXPORTS
#######################################################
CLASSPATH=$CLASSPATH:/usr/share/java/xalan2.jar; export CLASSPATH
PATH=$PATH:/usr/lib/festival/ ;PATH=$PATH:/usr/games/fortune/ ;export PATH
export JAVA_HOME=/usr/lib64/jvm/default-java
export JDK_HOME=/usr/lib64/jvm/java-6-openjdk
export ANT_HOME=/usr/share/ant
#export JAVA_HOME=/opt/jdk1.6.0_18
#export JAVA_HOME=/System/Library/Frameworks/JavaVM.frameworkVersions/CurrentJDK/Home #java in osx
export PATH=$PATH:$JDK_HOME/bin
export PATH=$PATH:$ANT_HOME/bin
##export http_proxy="http://proxycgr.contraloriagen.net:8080/"
##export https_proxy="http://proxycgr.contraloriagen.net:8080/"
##export ftp_proxy="http://proxycgr.contraloriagen.net:8080/"
##export EDITOR=/usr/bin/gedit
export EDITOR=/home/adben/soft/emacs/bin/emacs
##export LIFERAY_PORTAL=/Liferay-Portal
##export CATALINA_HOME=/Liferay-Portal/apache-tomcat-6.0.20
##export ECLIPSE_IDE_HOME=/Liferay-Portal/eclipse
#export MOZ_PLUGIN_PATH=~/.mozilla/plugins
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
#
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000
# Define a few Color's
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m' # No Color
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White
bakblk='\e[40m' # Black - Background
bakred='\e[41m' # Red
badgrn='\e[42m' # Green
bakylw='\e[43m' # Yellow
bakblu='\e[44m' # Blue
bakpur='\e[45m' # Purple
bakcyn='\e[46m' # Cyan
bakwht='\e[47m' # White
txtrst='\e[0m' # Text Reset
#More EXPORTS
#for golang
export GOROOT=$HOME/soft/go
export GOOS=linux
export GOARCH=386
export GOBIN=$HOME/bin
export PATH=$PATH:$GOBIN
#export MAVEN_OPTS="-Xmx256m -Xms128m"
export MAVEN_OPTS='-Xms128m -Xmx256m -XX:PermSize=128m -XX:-UseGCOverheadLimit'
#export MAVEN_OPTS='-Xms128m -Xmx512m -XX:PermSize=128m -XX:-UseGCOverheadLimit -Dwicket.configuration=development' ##debug wicket oneHippo
##export MAVEN_OPTS='-Xms128m -Xmx700m -XX:PermSize=128m -XX:-UseGCOverheadLimit'
##maven customizations
# Formatting constantsqquit
## let's work with maven colorized, new colors for sed
export BOLD=`tput bold`
export UNDERLINE_ON=`tput smul`
export UNDERLINE_OFF=`tput rmul`
export TEXT_BLACK=`tput setaf 0`
export TEXT_RED=`tput setaf 1`
export TEXT_GREEN=`tput setaf 2`
export TEXT_YELLOW=`tput setaf 3`
export TEXT_BLUE=`tput setaf 4`
export TEXT_MAGENTA=`tput setaf 5`
export TEXT_CYAN=`tput setaf 6`
export TEXT_WHITE=`tput setaf 7`
export BACKGROUND_BLACK=`tput setab 0`
export BACKGROUND_RED=`tput setab 1`
export BACKGROUND_GREEN=`tput setab 2`
export BACKGROUND_YELLOW=`tput setab 3`
export BACKGROUND_BLUE=`tput setab 4`
export BACKGROUND_MAGENTA=`tput setab 5`
export BACKGROUND_CYAN=`tput setab 6`
export BACKGROUND_WHITE=`tput setab 7`
export RESET_FORMATTING=`tput sgr0`
# Wrapper function for Maven's mvn command.
mvn-color()
{
# Filter mvn output using sed
# mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${TEXT_BLUE}${BOLD}\1/g" \
# -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}${BOLD}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[INFO\]\ Start.*\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[WARNING\].*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[ERROR\].*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}/g" \
# -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g"
mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${BACKGROUND_WHITE}${TEXT_BLUE}\1/g" \
-e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}\1${RESET_FORMATTING}/g" \
-e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \
-e "s/\(\[INFO\]\ Start.*\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \
-e "s/\(\[WARNING\].*\)/${BACKGROUND_BLACK}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
-e "s/\(\[ERROR\].*\)/${BACKGROUND_WHITE}${TEXT_RED}\1${RESET_FORMATTING}/g" \
-e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${TEXT_CYAN}\4${RESET_FORMATTING}/g"
# Make sure formatting is reset
echo -ne ${RESET_FORMATTING}
}
#Also for debuggins
mvnDebug-color()
{
# Filter mvn output using sed
# mvn $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${TEXT_BLUE}${BOLD}\1/g" \
# -e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}${BOLD}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[INFO\]\ Start.*\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[WARNING\].*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
# -e "s/\(\[ERROR\].*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}/g" \
# -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g"
mvnDebug $@ | sed -e "s/\(\[INFO\]\ \-.*\)/${BACKGROUND_WHITE}${TEXT_BLUE}\1/g" \
-e "s/\(\[INFO\]\ \[.*\)/${RESET_FORMATTING}\1${RESET_FORMATTING}/g" \
-e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \
-e "s/\(\[INFO\]\ Start.*\)/${BACKGROUND_BLACK}${TEXT_CYAN}\1${RESET_FORMATTING}/g" \
-e "s/\(\[WARNING\].*\)/${BACKGROUND_BLACK}${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
-e "s/\(\[ERROR\].*\)/${BACKGROUND_WHITE}${TEXT_RED}\1${RESET_FORMATTING}/g" \
-e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${TEXT_CYAN}\4${RESET_FORMATTING}/g"
# Make sure formatting is reset
echo -ne ${RESET_FORMATTING}
}
# Override the mvn command with the colorized one.
alias mvn="mvn-color"
# Override the mvnDebug command with the colorized one.
alias mvnDebug="mvnDebug-color"
alias hist='history | grep $1' #Requires one input
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
if [ $UID -eq "0" ]; then
PS1="\[\e[0;34m\][\[\e[0;31m\]\u\[\e[0;34m\]@\[\e[0;31m\]\h\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;31m\]\t\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;31m\]\j \s\[\e[0;34m\]] \n[\[\e[0;31m\]\w\[\e[0;34m\]]\[\e[0;36m\] \$:>\[\e[0m\] "
else
PS1="\[\e[0;34m\][\[\e[0;33m\]\u\[\e[0;34m\]@\[\e[0;33m\]\h\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;33m\]\t\[\e[0;34m\]] \[\e[0;35m\]- \[\e[0;34m\][\[\e[0;33m\]\j \s\[\e[0;34m\]] \n[\[\e[0;33m\]\w\[\e[0;34m\]]\[\e[0;36m\]\$:>\[\e[0m\] "
fi
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
#######################################################
# Aliases
#######################################################
# Enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias ls='ls -G'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
fi
#mac features
alias starwars='telnet towel.blinkenlights.nl'
alias kijk='qlmanage -p '
alias tree='ls -R | grep ":$" | sed -e "s/:$//" -e "s/[^-][^\/]*\//--/g" -e "s/^/ /" -e "s/-/|/"'
#some go aliases
alias build-and-go='sh ~/Documents/scripts/build-and-go'
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias ua='sudo apt-get update;sudo apt-get upgrade;sudo apt-get clean;sudo apt-get autoclean;sudo apt-get autoremove'
# alias for my external ip
alias ipext='curl -s ip.appspot.com'
#some aliases with git --- see peepcode/git stuff but see magit too
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
#alias susyn = 'sudo synaptic'
alias s='sudo bash'
alias trash='mv -t ~/.local/share/Trash/files --backup=t'
# Alias's to control hardware
alias cdo='eject /dev/cdrecorder'
alias cdc='eject -t /dev/cdrecorder'
alias dvdo='eject /dev/dvd'
alias dvdc='eject -t /dev/dvd'
alias scan='scanimage -L'
alias playw='for i in *.wav; do play $i; done'
alias playo='for i in *.ogg; do play $i; done'
alias playm='for i in *.mp3; do play $i; done'
alias copydisk='dd if=/dev/dvd of=/dev/cdrecorder' # Copies bit by bit from dvd to cdrecorder drives.
alias dvdrip='vobcopy -i /dev/dvd/ -o ~/DVDs/ -l'
# Alias's to modified commands
alias ps='ps aux'
alias home='cd ~'
alias pg='ps aux | grep' #requires an argument
alias un='tar -zxvf'
alias mountedinfo='df'
alias ping='ping -c 10'
alias openports='netstat -nape --inet'
alias ns='netstat -alnp --protocol=inet | grep -v CLOSE_WAIT | cut -c-6,21-94 | tail +2'
alias du1='du -h --max-depth=1'
alias da='date "+%Y-%m-%d %A %T %Z"'
alias ebrc='gedit ~/.bashrc'
# Alias to multiple ls commands
alias la='ls -Al' # show hidden files
alias ls='ls -aF --color=always' # add colors and file type extensions
alias lx='ls -lXB' # sort by extension
alias lk='ls -lSr' # sort by size
alias lc='ls -lcr' # sort by change time
alias lu='ls -lur' # sort by access time
alias lr='ls -lR' # recursive ls
alias lt='ls -ltr' # sort by date
alias lm='ls -al |more' # pipe through 'more'
# Alias chmod commands
alias mx='chmod a+x'
alias 000='chmod 000'
alias 644='chmod 644'
alias 755='chmod 755'
# Alias Shortcuts to graphical programs.
alias kwrite='kwrite 2>/dev/null &'
alias firefox='firefox 2>/dev/null &'
alias gaim='gaim 2>/dev/null &'
alias kate='kate 2>/dev/null &'
alias suk='kdesu konqueror 2>/dev/null &'
# Alias xterm and aterm
alias term='xterm -bg AntiqueWhite -fg Black &'
alias termb='xterm -bg AntiqueWhite -fg NavyBlue &'
alias termg='xterm -bg AntiqueWhite -fg OliveDrab &'
alias termr='xterm -bg AntiqueWhite -fg DarkRed &'
alias aterm='aterm -ls -fg gray -bg black'
alias xtop='xterm -fn 6x13 -bg LightSlateGray -fg black -e top &'
alias xsu='xterm -fn 7x14 -bg DarkOrange4 -fg white -e su &'
# Alias for lynx web browser
alias bbc='lynx -term=vt100 http://news.bbc.co.uk/text_only.stm'
alias nytimes='lynx -term=vt100 http://nytimes.com'
alias dmregister='lynx -term=vt100 http://desmoinesregister.com'
alias eltiempo='lynx -term=vt100 http://eltiempo.com'
alias meneame='lynx -term=vt100 http://meneame.net'
# SOME OF MY UNUSED ALIAS's
#######################################################
#alias d='echo "Good Morning Adolfo today's date is"; | espeak
# date +'%A %B %e' | festival --tts;
# alias shrink84='/home/crouse/shrink84/shrink84.sh'
# alias tl='tail -f /var/log/apache/access.log'
# alias te='tail -f /var/log/apache/error.log'
# SOURCED ALIAS'S AND SCRIPTS
#######################################################
### Begin insertion of bbips alias's ###
### source ~/.bbips/commandline/bbipsbashrc ##good stuff
### END bbips alias's ###
# SPECIAL FUNCTIONS
#######################################################
netinfo ()
{
echo "--------------- Network Information ---------------"
/sbin/ifconfig | awk /'inet addr/ {print $2}'
/sbin/ifconfig | awk /'Bcast/ {print $3}'
/sbin/ifconfig | awk /'inet addr/ {print $4}'
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
## echo -e "external ip: "; curl -s ip.appspot.com #sometimes hangs the startup of bash, waiting for the response, better in a ALIAS
echo "---------------------------------------------------"
}
spin ()
{
echo -ne "${RED}-"
echo -ne "${WHITE}\b|"
echo -ne "${BLUE}\bx"
sleep .02
echo -ne "${RED}\b+${NC}"
}
# cool stuff from googleapis, translate service, word language detection, pronounce, etc.
detectlanguage()
{
curl -s "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=$(echo "$@" | sed 's/ /%20/g')" | sed 's/{"responseData": {"language":"\([^"]*\)".*/\1\n/'
}
translate()
{
taal = curl -s "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')" | sed 's/{"responseData": {"language":"\([^"]*\)".*/\1\n/'
echo ${taal}
curl -s "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')&langpair=${taal}%7C$2" | sed 's/{"responseData": {"translatedText":"\([^"]*\)"}, .*}/\1\n/'
}
traductor()
{
curl -s "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$(echo "$1" | sed 's/ /%20/g')&langpair=$2%7C$3" | sed 's/{"responseData": {"translatedText":"\([^"]*\)"}, .*}/\1/'
}
pronounce()
{
wget -qO- $(wget -qO- "http://www.m-w.com/dictionary/$@" | grep 'return au' | sed -r "s|.*return au\('([^']*)', '([^'])[^']*'\).*|http://cougar.eb.com/soundc11/\2/\1|") | aplay -q
}
psgrep()
{
if [ ! -z $1 ]; then
echo "Grepping for processes matching $1..."
echo -e ps aux | grep -i $1 | grep -v grep
else echo "!! Need name to grep for"
fi
}
#scpsend ()
#{
#scp -P PORTNUMBERHERE "$@"
#USERNAME@YOURWEBSITE.com:/var/www/html/pathtodirectoryonremoteserver/;
#}
#######################################################
# NOTES
#######################################################
# To temporarily bypass an alias, we preceed the command with a \
# EG: the ls command is aliased, but to use the normal ls command you would
# type \ls
# mount -o loop /home/adben/NAMEOFISO.iso /home/adben/ISOMOUNTDIR/
# umount /home/adben/NAMEOFISO.iso
# Both commands done as root only.
# WELCOME SCREEN
#######################################################
clear
#for i in 'seq 1 15' ; echo "* "; done ;
#echo -ne "${LIGHTRED} Adolfo Benedetti ${NC}";
echo -ne " Adolfo Benedetti's linux station"; echo "";
echo -e ${LIGHTBLUE}; lsb_release -d
echo -e "Kernel Information: "; uname -smr
echo -e ${LIGHTBLUE}; bash --version
echo -ne "${CYAN}";netinfo;mountedinfo ; echo ""
echo -ne "Hello $USER today is "; date
echo -e "${LIGHTRED}"; cal;
#echo -e cal ; echo "";
#echo cal ; echo "";
#netinfo; echo ""; mountedinfo ;
#echo -n netinfo;mountedinfo ; echo
#echo -ne "Uptime for this computer is ";uptime | awk /'up/{print $3}'
echo -ne "${LIGHTBLUE}Uptime for this computer is ";uptime | awk /'up/{print $3,$4}'
echo -ne "${LIGHTRED}";fortune; echo "";
#echo -e "${LIGHTRED}";echo ""; cal ; echo "";
#echo ""; cal ; echo ""; bash -version
#for i in 'seq 1 15' ; do spin; done ;echo -ne "${LIGHTGRAY} ?? ${NC}"; for i in 'seq 1 15' ; do spin;done ;echo "";
#echo ""; echo ""
# Source global definitions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
================================================
FILE: .gitconfig
================================================
[user]
name = Adolfo Benedetti
email = adolfo.benedetti@gmail.com
[core]
editor = vim
autocrlf = false
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[alias]
co = checkout
# Log display from screencast, with train tracks.
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
# Alternate log display from Scott Chacon
lol = log --pretty=oneline --abbrev-commit --graph --decorate
# Other useful aliases:
unstage = reset HEAD
staged = diff --cached
unstaged = diff
current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
# Usage: git track origin/feature-123-login-form
track = checkout -t
[apply]
whitespace = warn
[color]
diff = auto
status = auto
branch = auto
ui = true
[help]
autocorrect = 1
[status]
submodule = 1
[push]
# Only push branches that have been set up to track a remote branch.
default = current
[github]
user = adben
[magithub]
online = false
[magithub "status"]
includeStatusHeader = false
includePullRequestsSection = false
includeIssuesSection = false
================================================
FILE: .gitignore
================================================
.classpath
.idea
.project
.settings/
*.iml
target/
atlassian-ide-plugin.xml
================================================
FILE: .spacemacs
================================================
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
;;Byte recompile to force emacs version compatibility
;;(byte-recompile-directory (expand-file-name "~/.emacs.d") 0)
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; or `spacemacs'. (default 'spacemacs)
dotspacemacs-distribution 'spacemacs
;; Lazy installation of layers (i.e. layers are installed only when a file
;; with a supported type is opened). Possible values are `all', `unused'
;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
;; lazy install any layer that support lazy installation even the layers
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
;; installation feature and you have to explicitly list a layer in the
;; variable `dotspacemacs-configuration-layers' to install it.
;; (default 'unused)
dotspacemacs-enable-lazy-installation 'unused
;; If non-nil then Spacemacs will ask for confirmation before installing
;; a layer lazily. (default t)
dotspacemacs-ask-for-lazy-installation t
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
;; `M-m f e R' (Emacs style) to install them.
;; ----------------------------------------------------------------
helm
osx
auto-completion
(html :variables
css-indent-offset 2
web-mode-code-indent-offset 2
web-mode-markup-indent-offset 2
web-mode-css-indent-offset 2)
(javascript :variables
javascript-disable-tern-port-files nil)
react
;;tilde
elixir
(haskell :variables
haskell-enable-hindent-style "johan-tibell"
haskell-process-type 'stack-ghci
haskell-completion-backend 'dante
haskell-enable-hindent t
haskell-stylish-on-save t)
better-defaults
emacs-lisp
clojure
markdown
(dash :variables
dash-at-point-legacy-mode t)
(git :variables
git-gutter-use-fringe t
git-magit-status-fullscreen nil
git-enable-github-support t)
(go :variables
go-tab-width 4
gofmt-command "goimports"
go-use-gometalinter t)
org
spell-checking
syntax-checking
version-control
gtags
git
;;github
markdown
(python :variables
python-sort-imports-on-save t
python-enable-yapf-format-on-save t
python-test-runner '(pytest nose))
asciidoc
rust
elm
yaml
;;multiple-cursors
treemacs
nixos
multiple-cursors
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
scala
)
;; List of additional packages that will be installed without being wrapped
;; in a layer (generally the packages are installed only and should still be
;; loaded using load/require/use-package in the user-config section below in
;; this file). If you need some configuration for these packages, then
;; consider creating a layer. You can also put the configuration in
;; `dotspacemacs/user-config'. To use a local version of a package, use the
;; `:location' property: '(your-package :location "~/path/to/your-package/")
;; Also include the dependencies as they will not be resolved automatically.
;; dotspacemacs-additional-packages '() ;;base 16 themes, see
;; https://github.com/chriskempson/base16
;; https://github.com/belak/base16-emacs
;; https://github.com/syl20bnr/spacemacs/issues/1851
dotspacemacs-additional-packages '(graphql-mode
ng2-mode
all-the-icons
all-the-icons-dired
eslint-fix
prettier-js
racer
circe
gruvbox-theme
go-translate)
;; A list of packages that cannot be updated.
dotspacemacs-frozen-packages '()
;; A list of packages that will not be installed and loaded.
dotspacemacs-excluded-packages '()
;; Defines the behaviour of Spacemacs when installing packages.
;; Possible values are `used-only', `used-but-keep-unused' and `all'.
;; `used-only' installs only explicitly used packages and deletes any unused
;; packages as well as their unused dependencies. `used-but-keep-unused'
;; installs only the used packages but won't delete unused ones. `all'
;; installs *all* packages supported by Spacemacs and never uninstalls them.
;; (default is `used-only')
dotspacemacs-install-packages 'used-only))
(defun dotspacemacs/init ()
"Initialization:
This function is called at the very beginning of Spacemacs startup,
before layer configuration.
It should only modify the values of Spacemacs settings."
;; This setq-default sexp is an exhaustive list of all the supported
;; spacemacs settings.
(setq-default
;; If non-nil then enable support for the portable dumper. You'll need to
;; compile Emacs 27 from source following the instructions in file
;; EXPERIMENTAL.org at to root of the git repository.
;;
;; WARNING: pdumper does not work with Native Compilation, so it's disabled
;; regardless of the following setting when native compilation is in effect.
;;
;; (default nil)
dotspacemacs-enable-emacs-pdumper nil
;; Name of executable file pointing to emacs 27+. This executable must be
;; in your PATH.
;; (default "emacs")
dotspacemacs-emacs-pdumper-executable-file "emacs"
;; Name of the Spacemacs dump file. This is the file will be created by the
;; portable dumper in the cache directory under dumps sub-directory.
;; To load it when starting Emacs add the parameter `--dump-file'
;; when invoking Emacs 27.1 executable on the command line, for instance:
;; ./emacs --dump-file=$HOME/.emacs.d/.cache/dumps/spacemacs-27.1.pdmp
;; (default (format "spacemacs-%s.pdmp" emacs-version))
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
;; possible. Set it to nil if you have no way to use HTTPS in your
;; environment, otherwise it is strongly recommended to let it set to t.
;; This variable has no effect if Emacs is launched with the parameter
;; `--insecure' which forces the value of this variable to nil.
;; (default t)
dotspacemacs-elpa-https t
;; Maximum allowed time in seconds to contact an ELPA repository.
;; (default 5)
dotspacemacs-elpa-timeout 5
;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes.
;; This is an advanced option and should not be changed unless you suspect
;; performance issues due to garbage collection operations.
;; (default '(100000000 0.1))
dotspacemacs-gc-cons '(100000000 0.1)
;; Set `read-process-output-max' when startup finishes.
;; This defines how much data is read from a foreign process.
;; Setting this >= 1 MB should increase performance for lsp servers
;; in emacs 27.
;; (default (* 1024 1024))
dotspacemacs-read-process-output-max (* 1024 1024)
;; If non-nil then Spacelpa repository is the primary source to install
;; a locked version of packages. If nil then Spacemacs will install the
;; latest version of packages from MELPA. Spacelpa is currently in
;; experimental state please use only for testing purposes.
;; (default nil)
dotspacemacs-use-spacelpa nil
;; If non-nil then verify the signature for downloaded Spacelpa archives.
;; (default t)
dotspacemacs-verify-spacelpa-archives t
;; If non-nil then spacemacs will check for updates at startup
;; when the current branch is not `develop'. Note that checking for
;; new versions works via git commands, thus it calls GitHub services
;; whenever you start Emacs. (default nil)
dotspacemacs-check-for-update nil
;; If non-nil, a form that evaluates to a package directory. For example, to
;; use different package directories for different Emacs versions, set this
;; to `emacs-version'. (default 'emacs-version)
dotspacemacs-elpa-subdirectory 'emacs-version
;; One of `vim', `emacs' or `hybrid'.
;; `hybrid' is like `vim' except that `insert state' is replaced by the
;; `hybrid state' with `emacs' key bindings. The value can also be a list
;; with `:variables' keyword (similar to layers). Check the editing styles
;; section of the documentation for details on available variables.
;; (default 'vim)
dotspacemacs-editing-style 'emacs
;; If non-nil show the version string in the Spacemacs buffer. It will
;; appear as (spacemacs version)@(emacs version)
;; (default t)
dotspacemacs-startup-buffer-show-version t
;; Specify the startup banner. Default value is `official', it displays
;; the official spacemacs logo. An integer value is the index of text
;; banner, `random' chooses a random text banner in `core/banners'
;; directory. A string value must be a path to an image format supported
;; by your Emacs build.
;; If the value is nil then no banner is displayed. (default 'official)
dotspacemacs-startup-banner 'official
;; Scale factor controls the scaling (size) of the startup banner. Default
;; value is `auto' for scaling the logo automatically to fit all buffer
;; contents, to a maximum of the full image height and a minimum of 3 line
;; heights. If set to a number (int or float) it is used as a constant
;; scaling factor for the default logo size.
dotspacemacs-startup-banner-scale 'auto
;; List of items to show in startup buffer or an association list of
;; the form `(list-type . list-size)`. If nil then it is disabled.
;; Possible values for list-type are:
;; `recents' `recents-by-project' `bookmarks' `projects' `agenda' `todos'.
;; List sizes may be nil, in which case
;; `spacemacs-buffer-startup-lists-length' takes effect.
;; The exceptional case is `recents-by-project', where list-type must be a
;; pair of numbers, e.g. `(recents-by-project . (7 . 5))', where the first
;; number is the project limit and the second the limit on the recent files
;; within a project.
dotspacemacs-startup-lists '((recents . 5)
(projects . 7))
;; True if the home buffer should respond to resize events. (default t)
dotspacemacs-startup-buffer-responsive t
;; Show numbers before the startup list lines. (default t)
dotspacemacs-show-startup-list-numbers t
;; The minimum delay in seconds between number key presses. (default 0.4)
dotspacemacs-startup-buffer-multi-digit-delay 0.4
;; If non-nil, show file icons for entries and headings on Spacemacs home buffer.
;; This has no effect in terminal or if "all-the-icons" package or the font
;; is not installed. (default nil)
dotspacemacs-startup-buffer-show-icons nil
;; Default major mode for a new empty buffer. Possible values are mode
;; names such as `text-mode'; and `nil' to use Fundamental mode.
;; (default `text-mode')
dotspacemacs-new-empty-buffer-major-mode 'text-mode
;; Default major mode of the scratch buffer (default `text-mode')
dotspacemacs-scratch-mode 'text-mode
;; If non-nil, *scratch* buffer will be persistent. Things you write down in
;; *scratch* buffer will be saved and restored automatically.
dotspacemacs-scratch-buffer-persistent nil
;; If non-nil, `kill-buffer' on *scratch* buffer
;; will bury it instead of killing.
dotspacemacs-scratch-buffer-unkillable nil
;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!"
;; (default nil)
dotspacemacs-initial-scratch-message nil
;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press `SPC T n' to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light)
dotspacemacs-themes '(spacemacs-dark
spacemacs-light
solarized-light)
;; Set the theme for the Spaceline. Supported themes are `spacemacs',
;; `all-the-icons', `custom', `doom', `vim-powerline' and `vanilla'. The
;; first three are spaceline themes. `doom' is the doom-emacs mode-line.
;; `vanilla' is default Emacs mode-line. `custom' is a user defined themes,
;; refer to the DOCUMENTATION.org for more info on how to create your own
;; spaceline theme. Value can be a symbol or list with additional properties.
;; (default '(spacemacs :separator wave :separator-scale 1.5))
dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5)
;; If non-nil the cursor color matches the state color in GUI Emacs.
;; (default t)
dotspacemacs-colorize-cursor-according-to-state t
;; Default font or prioritized list of fonts. The `:size' can be specified as
;; a non-negative integer (pixel size), or a floating-point (point size).
;; Point size is recommended, because it's device independent. (default 10.0)
dotspacemacs-default-font '("Source Code Pro"
:size 15.0
:weight normal
:width normal)
;; The leader key (default "SPC")
dotspacemacs-leader-key "SPC"
;; The key used for Emacs commands `M-x' (after pressing on the leader key).
;; (default "SPC")
dotspacemacs-emacs-command-key "SPC"
;; The key used for Vim Ex commands (default ":")
dotspacemacs-ex-command-key ":"
;; The leader key accessible in `emacs state' and `insert state'
;; (default "M-m")
dotspacemacs-emacs-leader-key "M-m"
;; Major mode leader key is a shortcut key which is the equivalent of
;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
dotspacemacs-major-mode-leader-key ","
;; Major mode leader key accessible in `emacs state' and `insert state'.
;; (default "C-M-m" for terminal mode, "<M-return>" for GUI mode).
;; Thus M-RET should work as leader key in both GUI and terminal modes.
;; C-M-m also should work in terminal mode, but not in GUI mode.
dotspacemacs-major-mode-emacs-leader-key (if window-system "<M-return>" "C-M-m")
;; These variables control whether separate commands are bound in the GUI to
;; the key pairs `C-i', `TAB' and `C-m', `RET'.
;; Setting it to a non-nil value, allows for separate commands under `C-i'
;; and TAB or `C-m' and `RET'.
;; In the terminal, these pairs are generally indistinguishable, so this only
;; works in the GUI. (default nil)
dotspacemacs-distinguish-gui-tab nil
;; Name of the default layout (default "Default")
dotspacemacs-default-layout-name "Default"
;; If non-nil the default layout name is displayed in the mode-line.
;; (default nil)
dotspacemacs-display-default-layout nil
;; If non-nil then the last auto saved layouts are resumed automatically upon
;; start. (default nil)
dotspacemacs-auto-resume-layouts nil
;; If non-nil, auto-generate layout name when creating new layouts. Only has
;; effect when using the "jump to layout by number" commands. (default nil)
dotspacemacs-auto-generate-layout-names nil
;; Size (in MB) above which spacemacs will prompt to open the large file
;; literally to avoid performance issues. Opening a file literally means that
;; no major mode or minor modes are active. (default is 1)
dotspacemacs-large-file-size 1
;; Location where to auto-save files. Possible values are `original' to
;; auto-save the file in-place, `cache' to auto-save the file to another
;; file stored in the cache directory and `nil' to disable auto-saving.
;; (default 'cache)
dotspacemacs-auto-save-file-location 'cache
;; Maximum number of rollback slots to keep in the cache. (default 5)
dotspacemacs-max-rollback-slots 5
;; If non-nil, the paste transient-state is enabled. While enabled, after you
;; paste something, pressing `C-j' and `C-k' several times cycles through the
;; elements in the `kill-ring'. (default nil)
dotspacemacs-enable-paste-transient-state nil
;; Which-key delay in seconds. The which-key buffer is the popup listing
;; the commands bound to the current keystroke sequence. (default 0.4)
dotspacemacs-which-key-delay 0.4
;; Which-key frame position. Possible values are `right', `bottom' and
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
;; right; if there is insufficient space it displays it at the bottom.
;; (default 'bottom)
dotspacemacs-which-key-position 'right-then-bottom
;; Control where `switch-to-buffer' displays the buffer. If nil,
;; `switch-to-buffer' displays the buffer in the current window even if
;; another same-purpose window is available. If non-nil, `switch-to-buffer'
;; displays the buffer in a same-purpose window even if the buffer can be
;; displayed in the current window. (default nil)
dotspacemacs-switch-to-buffer-prefers-purpose nil
;; If non-nil a progress bar is displayed when spacemacs is loading. This
;; may increase the boot time on some systems and emacs builds, set it to
;; nil to boost the loading time. (default t)
dotspacemacs-loading-progress-bar t
;; If non-nil the frame is fullscreen when Emacs starts up. (default nil)
;; (Emacs 24.4+ only)
dotspacemacs-fullscreen-at-startup nil
;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
;; Use to disable fullscreen animations in OSX. (default nil)
dotspacemacs-fullscreen-use-non-native nil
;; If non-nil the frame is maximized when Emacs starts up.
;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
;; (default nil) (Emacs 24.4+ only)
dotspacemacs-maximized-at-startup nil
;; If non-nil the frame is undecorated when Emacs starts up. Combine this
;; variable with `dotspacemacs-maximized-at-startup' in OSX to obtain
;; borderless fullscreen. (default nil)
dotspacemacs-undecorated-at-startup nil
;; A value from the range (0..100), in increasing opacity, which describes
;; the transparency level of a frame when it's active or selected.
;; Transparency can be toggled through `toggle-transparency'. (default 90)
dotspacemacs-active-transparency 90
;; A value from the range (0..100), in increasing opacity, which describes
;; the transparency level of a frame when it's inactive or deselected.
;; Transparency can be toggled through `toggle-transparency'. (default 90)
dotspacemacs-inactive-transparency 90
;; If non-nil show the titles of transient states. (default t)
dotspacemacs-show-transient-state-title t
;; If non-nil show the color guide hint for transient state keys. (default t)
dotspacemacs-show-transient-state-color-guide t
;; If non-nil unicode symbols are displayed in the mode line.
;; If you use Emacs as a daemon and wants unicode characters only in GUI set
;; the value to quoted `display-graphic-p'. (default t)
dotspacemacs-mode-line-unicode-symbols t
;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth
;; scrolling overrides the default behavior of Emacs which recenters point
;; when it reaches the top or bottom of the screen. (default t)
dotspacemacs-smooth-scrolling t
;; Show the scroll bar while scrolling. The auto hide time can be configured
;; by setting this variable to a number. (default t)
dotspacemacs-scroll-bar-while-scrolling t
;; Control line numbers activation.
;; If set to `t', `relative' or `visual' then line numbers are enabled in all
;; `prog-mode' and `text-mode' derivatives. If set to `relative', line
;; numbers are relative. If set to `visual', line numbers are also relative,
;; but only visual lines are counted. For example, folded lines will not be
;; counted and wrapped lines are counted as multiple lines.
;; This variable can also be set to a property list for finer control:
;; '(:relative nil
;; :visual nil
;; :disabled-for-modes dired-mode
;; doc-view-mode
;; markdown-mode
;; org-mode
;; pdf-view-mode
;; text-mode
;; :size-limit-kb 1000)
;; When used in a plist, `visual' takes precedence over `relative'.
;; (default nil)
dotspacemacs-line-numbers nil
;; Code folding method. Possible values are `evil', `origami' and `vimish'.
;; (default 'evil)
dotspacemacs-folding-method 'evil
;; If non-nil and `dotspacemacs-activate-smartparens-mode' is also non-nil,
;; `smartparens-strict-mode' will be enabled in programming modes.
;; (default nil)
dotspacemacs-smartparens-strict-mode nil
;; If non-nil smartparens-mode will be enabled in programming modes.
;; (default t)
dotspacemacs-activate-smartparens-mode t
;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
;; over any automatically added closing parenthesis, bracket, quote, etc...
;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
dotspacemacs-smart-closing-parenthesis nil
;; Select a scope to highlight delimiters. Possible values are `any',
;; `current', `all' or `nil'. Default is `all' (highlight any scope and
;; emphasis the current one). (default 'all)
dotspacemacs-highlight-delimiters 'all
;; If non-nil, start an Emacs server if one is not already running.
;; (default nil)
dotspacemacs-enable-server nil
;; Set the emacs server socket location.
;; If nil, uses whatever the Emacs default is, otherwise a directory path
;; like \"~/.emacs.d/server\". It has no effect if
;; `dotspacemacs-enable-server' is nil.
;; (default nil)
dotspacemacs-server-socket-dir nil
;; If non-nil, advise quit functions to keep server open when quitting.
;; (default nil)
dotspacemacs-persistent-server nil
;; List of search tool executable names. Spacemacs uses the first installed
;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'.
;; (default '("rg" "ag" "pt" "ack" "grep"))
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep")
;; Format specification for setting the frame title.
;; %a - the `abbreviated-file-name', or `buffer-name'
;; %t - `projectile-project-name'
;; %I - `invocation-name'
;; %S - `system-name'
;; %U - contents of $USER
;; %b - buffer name
;; %f - visited file name
;; %F - frame name
;; %s - process status
;; %p - percent of buffer above top of window, or Top, Bot or All
;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All
;; %m - mode name
;; %n - Narrow if appropriate
;; %z - mnemonics of buffer, terminal, and keyboard coding systems
;; %Z - like %z, but including the end-of-line format
;; If nil then Spacemacs uses default `frame-title-format' to avoid
;; performance issues, instead of calculating the frame title by
;; `spacemacs/title-prepare' all the time.
;; (default "%I@%S")
dotspacemacs-frame-title-format "%I@%S"
;; Format specification for setting the icon title format
;; (default nil - same as frame-title-format)
dotspacemacs-icon-title-format nil
;; Color highlight trailing whitespace in all prog-mode and text-mode derived
;; modes such as c++-mode, python-mode, emacs-lisp, html-mode, rst-mode etc.
;; (default t)
dotspacemacs-show-trailing-whitespace t
;; Delete whitespace while saving buffer. Possible values are `all'
;; to aggressively delete empty line and long sequences of whitespace,
;; `trailing' to delete only the whitespace at end of lines, `changed' to
;; delete only whitespace for changed lines or `nil' to disable cleanup.
;; (default nil)
dotspacemacs-whitespace-cleanup nil
;; If non-nil activate `clean-aindent-mode' which tries to correct
;; virtual indentation of simple modes. This can interfere with mode specific
;; indent handling like has been reported for `go-mode'.
;; If it does deactivate it here.
;; (default t)
dotspacemacs-use-clean-aindent-mode t
;; Accept SPC as y for prompts if non-nil. (default nil)
dotspacemacs-use-SPC-as-y nil
;; If non-nil shift your number row to match the entered keyboard layout
;; (only in insert state). Currently supported keyboard layouts are:
;; `qwerty-us', `qwertz-de' and `querty-ca-fr'.
;; New layouts can be added in `spacemacs-editing' layer.
;; (default nil)
dotspacemacs-swap-number-row nil
;; Either nil or a number of seconds. If non-nil zone out after the specified
;; number of seconds. (default nil)
dotspacemacs-zone-out-when-idle nil
;; Run `spacemacs/prettify-org-buffer' when
;; visiting README.org files of Spacemacs.
;; (default nil)
dotspacemacs-pretty-docs nil
;; If nil the home buffer shows the full path of agenda items
;; and todos. If non-nil only the file name is shown.
dotspacemacs-home-shorten-agenda-source nil
;; If non-nil then byte-compile some of Spacemacs files.
dotspacemacs-byte-compile nil))
(defun dotspacemacs/user-env ()
"Environment variables setup.
This function defines the environment variables for your Emacs session. By
default it calls `spacemacs/load-spacemacs-env' which loads the environment
variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'.
See the header of this file for more information."
(spacemacs/load-spacemacs-env)
)
(defun dotspacemacs/user-init ()
"Initialization for user code:
This function is called immediately after `dotspacemacs/init', before layer
configuration.
It is mostly for variables that should be set before packages are loaded.
If you are unsure, try setting them in `dotspacemacs/user-config' first."
)
(defun dotspacemacs/user-load ()
"Library to load while dumping.
This function is called only while dumping Spacemacs configuration. You can
`require' or `load' the libraries of your choice that will be included in the
dump."
)
(defun dotspacemacs/user-config ()
"Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
;; Set the Emacs PATH:
(setenv "PATH" (shell-command-to-string "echo $PATH"))
;; Haskell Dante mode see https://www.fosskers.ca/blog/nix-en.html
(add-hook 'dante-mode-hook 'flycheck-mode)
;; Haskell Dante https://github.com/jyp/dante#installation
;; (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
(require 'gruvbox)
(global-company-mode t)
;;fixes the loading helm errors
(require 'helm)
(require 'tramp)
;;Reading adoc files
(require 'adoc-mode)
(setq auto-mode-alist (append '(("\\.asciidoc$" . adoc-mode))
auto-mode-alist))
;; Add all-the-icons to dired-mode
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode)
;; Disabling js2 mode errors & warnings
(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)
;;Clojure cookbook
(define-key adoc-mode-map (kbd "M-+") 'increment-clojure-cookbook)
;;Scala metals
(setq scala-auto-treeview t)
;;(setq scala-sbt-window-position bottom)
;;JS mode
(setq-default js2-basic-offset 2)
(setq-default js-indent-level 2)
;;Clojure cider warnings
(setq cljr-suppress-middleware-warnings t)
;;Themes
(setq-default dotspacemacs-themes '(base16-tomorrow-night))
(setq clojure-enable-fancify-symbols t)
;;(spacemacs/set-font "PragmataPro Mono" 12)
;;go-translate
(require 'go-translate)
;;go-translate list declared languages
(setq gts-translate-list '(("nl" "en")
("nl" "es")
("en" "es")
("en" "nl")
("es" "nl")
("es" "en")))
;;go-translate engine
(setq gts-default-translator
(gts-translator
:picker (gts-prompt-picker)
:engines (list (gts-bing-engine) (gts-google-engine))
:render (gts-buffer-render)))
;;voor Rust: https://github.com/racer-rust/Emacs[<8;106;17m-racer
;;(require 'rust-mode)
;;(require 'racer)
;;(add-hook 'rust-mode-hook #'racer-mode)
;;(add-hook 'racer-mode-hook #'company-mode)
;;(define-key rust-mode-map (kbd "TAB") #'company-indent-or-complete-common)
(setq company-tooltip-align-annotations t)
;; Reduce the time after which the company auto completion popup opens
(setq company-idle-delay 0.2)
;; Reduce the number of characters before company kicks in
(setq company-minimum-prefix-length 1)
;; Paths see https://github.com/racer-rust/emacs-racer
(setq racer-cmd (expand-file-name "~/.cargo/bin/racer"))
(setq racer-rust-src-path (file-truename "~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src"))
;; Load rust-mode when you open `.rs` files
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
;; Setting up configurations when you load rust-mode
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'company-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode)
(global-set-key (kbd "TAB") #'company-indent-or-complete-common)
;;Duplify lines
(global-set-key "\C-c\C-d" "\C-a\C- \C-n\M-w\C-y")
;;Paredit
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'clojure-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
;; (eval-after-load 'treemacs
;; (lambda ()
;; (unless (require 'all-the-icons nil t)
;; (error "all-the-icons is not installed"))
;; (when treem)
;; ))
;;check https://github.com/Alexander-Miller/treemacs/issues/3
;; (dolist (item all-the-icons-icon-alist)
;; (let ((extension (car item))
;; (icon (apply (cdr item))))
;; (ht-set! treemacs-icon-hash
;; (s-replace-all '(("\\" . "") ("." . "")) extension)
;; (concat icon " "))))
;;Clojure cookbook
(defun increment-clojure-cookbook ()
"When reading the Clojure cookbook, find the next section, and
close the buffer. If the next section is a sub-directory or in
the next chapter, open Dired so you can find it manually."
(interactive)
(let* ((cur (buffer-name))
(split-cur (split-string cur "[-_]"))
(chap (car split-cur))
(rec (car (cdr split-cur)))
(rec-num (string-to-number rec))
(next-rec-num (1+ rec-num))
(next-rec-s (number-to-string next-rec-num))
(next-rec (if (< next-rec-num 10)
(concat "0" next-rec-s)
next-rec-s))
(target (file-name-completion (concat chap "-" next-rec) "")))
(progn
(if (equal target nil)
(dired (file-name-directory (buffer-file-name)))
(find-file target))
(kill-buffer cur))))
)
(defun dotspacemacs/emacs-custom-settings ()
"Emacs custom settings.
This is an auto-generated function, do not modify its content directly, use
Emacs customize menu instead.
This function is called at the very end of Spacemacs initialization."
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("8f97d5ec8a774485296e366fdde6ff5589cf9e319a584b845b6f7fa788c9fa9a" "0598c6a29e13e7112cfbc2f523e31927ab7dce56ebb2016b567e1eff6dc1fd4f" "a22f40b63f9bc0a69ebc8ba4fbc6b452a4e3f84b80590ba0a92b4ff599e53ad0" "80930c775cef2a97f2305bae6737a1c736079fdcc62a6fdf7b55de669fbbcd13" "3380a2766cf0590d50d6366c5a91e976bdc3c413df963a0ab9952314b4577299" "7bfd38733dc58478d2104c30114022a88ddb92540fa4fb7516f79e55967a348d" "fa2b58bb98b62c3b8cf3b6f02f058ef7827a8e497125de0254f56e373abee088" default))
'(evil-want-Y-yank-to-eol nil)
'(package-selected-packages
'(evil-vimish-fold vimish-fold toml-mode racer flycheck-rust cargo rust-mode parseedn parseclj a intero hlint-refactor hindent helm-hoogle haskell-snippets flycheck-haskell company-ghci company-ghc ghc haskell-mode company-cabal cmm-mode transient lv sesman circe prettier-js nord-theme eslint-fix org-mime solarized-theme oneonone hexrgb ng2-mode typescript-mode graphql-mode dracula-theme atom-one-dark-theme all-the-icons-dired all-the-icons memoize font-lock+ ghub let-alist magit-gh-pulls github-search github-clone github-browse-file gist gh marshal logito ht org-category-capture yaml-mode gntp parent-mode gitignore-mode fringe-helper git-gutter+ pos-tip flx evil-unimpaired goto-chg edn peg eval-sexp-fu queue pkg-info epl popup diminish yapfify pyvenv pytest pyenv-mode py-isort pip-requirements live-py-mode hy-mode helm-pydoc cython-mode company-anaconda anaconda-mode pythonic base16-theme winum unfill fuzzy paredit log4e packed adoc-mode markup-faces bind-key bind-map powerline spinner org highlight pcache projectile go-eldoc git-gutter iedit company-go hydra inflections multiple-cursors cider seq clojure-mode yasnippet auto-complete company anzu smartparens evil undo-tree flycheck go-mode request helm helm-core avy markdown-mode alert magit magit-popup git-commit with-editor async dash s hide-comnt go-guru uuidgen pug-mode osx-dictionary org-projectile org-download mwim livid-mode skewer-mode simple-httpd link-hint git-link flyspell-correct-helm flyspell-correct flycheck-gometalinter eyebrowse evil-visual-mark-mode evil-ediff dumb-jump f column-enforce-mode clojure-snippets darktooth-theme xkcd web-mode web-beautify tagedit slim-mode scss-mode sass-mode rvm ruby-tools ruby-test-mode rubocop rspec-mode robe reveal-in-osx-finder rbenv pbcopy osx-trash lua-mode less-css-mode launchctl json-mode json-snatcher json-reformat js2-refactor js2-mode js-doc jade-mode helm-gtags helm-css-scss haml-mode ggtags emmet-mode company-web web-completion-data company-tern dash-functional tern coffee-mode chruby bundler inf-ruby helm-dash dash-at-point xterm-color ws-butler window-numbering which-key volatile-highlights vi-tilde-fringe use-package toc-org spacemacs-theme spaceline smooth-scrolling smeargle shell-pop restart-emacs rainbow-delimiters quelpa popwin persp-mode pcre2el paradox page-break-lines orgit org-repo-todo org-present org-pomodoro org-plus-contrib org-bullets open-junk-file neotree multi-term move-text mmm-mode markdown-toc magit-gitflow macrostep lorem-ipsum linum-relative leuven-theme info+ indent-guide ido-vertical-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make helm-gitignore helm-flyspell helm-flx helm-descbinds helm-company helm-c-yasnippet helm-ag google-translate golden-ratio gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-gutter-fringe git-gutter-fringe+ gh-md flycheck-pos-tip flx-ido fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-args evil-anzu eshell-prompt-extras esh-help elisp-slime-nav diff-hl define-word company-statistics company-quickhelp clj-refactor clean-aindent-mode cider-eval-sexp-fu buffer-move bracketed-paste auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell))
'(safe-local-variable-values
'((eval when
(fboundp 'rainbow-mode)
(rainbow-mode 1))
(no-bytpe-compile . t))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil))))
'(font-lock-comment-face ((t (:slant italic)))))
)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
(quote
("a22f40b63f9bc0a69ebc8ba4fbc6b452a4e3f84b80590ba0a92b4ff599e53ad0" default)))
'(package-selected-packages
(quote
(mmm-mode evil-visualstar evil-visual-mark-mode evil-tutor evil-surround evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state iedit evil-exchange evil-ediff evil-args evil-anzu anzu evil undo-tree clj-refactor inflections edn spinner queue adaptive-wrap spaceline yapfify yaml-mode ws-butler winum which-key web-mode web-beautify volatile-highlights vi-tilde-fringe uuidgen use-package unfill toml-mode toc-org tagedit powerline smeargle smartparens slim-mode scss-mode sass-mode reveal-in-osx-finder restart-emacs rainbow-delimiters racer pyvenv pytest pyenv-mode py-isort pug-mode prettier-js popwin pip-requirements persp-mode pcre2el pbcopy paradox osx-trash osx-dictionary orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download org-bullets open-junk-file ob-elixir nix-mode ng2-mode typescript-mode neotree mwim move-text markdown-toc magit-gitflow magit-popup magit-gh-pulls macrostep lorem-ipsum livid-mode skewer-mode simple-httpd live-py-mode linum-relative link-hint launchctl json-mode json-snatcher json-reformat js2-refactor js2-mode js-doc intero indent-guide hydra hy-mode hungry-delete htmlize hlint-refactor hl-todo hindent highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-pydoc helm-projectile projectile helm-nixos-options helm-mode-manager helm-make helm-hoogle helm-gtags helm-gitignore request helm-flx helm-descbinds helm-dash dash-docs helm-css-scss helm-company helm-c-yasnippet helm-ag haskell-snippets haml-mode graphql-mode google-translate golden-ratio go-guru go-eldoc gnuplot gitignore-mode github-search github-clone magit github-browse-file gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter gist gh marshal logito pcache ht gh-md ggtags fuzzy flyspell-correct-helm flyspell-correct flycheck-rust flycheck-pos-tip pos-tip flycheck-mix flycheck-haskell flycheck-gometalinter flycheck-elm flycheck-credo flycheck flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-unimpaired evil-search-highlight-persist highlight evil-numbers evil-nerd-commenter transient git-commit with-editor evil-escape goto-chg eslint-fix emmet-mode elm-mode reformatter elisp-slime-nav dumb-jump diminish diff-hl dash-at-point cython-mode company-web web-completion-data company-tern dash-functional tern company-statistics company-nixos-options nixos-options company-go go-mode company-ghci company-ghc ghc haskell-mode company-cabal company-anaconda column-enforce-mode coffee-mode cmm-mode clojure-snippets multiple-cursors paredit peg lv clean-aindent-mode circe cider-eval-sexp-fu eval-sexp-fu cider sesman parseedn clojure-mode parseclj a cargo markdown-mode rust-mode bind-map bind-key auto-yasnippet yasnippet auto-highlight-symbol auto-dictionary auto-compile packed anaconda-mode pythonic f all-the-icons-dired all-the-icons memoize alchemist s company elixir-mode pkg-info epl aggressive-indent adoc-mode markup-faces ace-window ace-link ace-jump-helm-line helm avy helm-core async ac-ispell auto-complete popup gruvbox-theme))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
================================================
FILE: .zshenv
================================================
## Customize to your needs... #PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/go/bin:/Users/adolfobenedetti/Dev/Soft/apache-maven-3.1.0/bin:/opt/local/bin:/usr/texbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/X11/bin:/Users/adolfobenedetti/Dev/Soft/play:/opt/local/libexec/gnubin:/usr/local/Cellar/android-sdk/r21/bin:/usr/local/go//bin:/Users/adolfobenedetti/bin:/Users/adolfobenedetti/bin/FDK/Tools/osx:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin
## next line should be in the ~/.zshenv
## export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters
## export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home
export NODE_HOME=/usr/local/opt/node
export ANT_HOME=/usr/local/opt/ant
export MAVEN_HOME=/usr/local/opt/maven
export GRADLE_HOME=/usr/local/opt/gradle
export ANDROID_HOME=/usr/local/share/android-sdk
export ANDROID_NDK_HOME=/usr/local/share/android-ndk
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
export INTEL_HAXM_HOME=/usr/local/Caskroom/intel-haxm
export GO_HOME=/usr/local/opt/go/libexec/
export PYTHON_HOME=/usr/local/opt/python/libexec/
export CARGO_HOME=$HOME/.cargo
## RUST
typeset -U path
path+=(~/.cargo/bin)
#export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src
export RUST_SRC_PATH=$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src
export GOPATH=$HOME/go
export GORACE=''
export KINDLEGEN_HOME=/Users/adben/Downloads/KindleGen_Mac_i386_v2_9
export GOROOT=$GO_HOME
export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$PATH:$HOME/.local/bin # for stack - haskell
export PATH=$PATH:/usr/local/lib/ruby/gems/2.6.0/bin
export PATH=$PATH:$(ruby -r rubygems -e 'puts Gem.user_dir')/bin
export PATH=$PATH:$GO_HOME/bin
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/opt/local/bin
export PATH=$PATH:/usr/local/bin
export PATH=$PATH:/usr/texbin
export PATH=$PATH:/bin
export PATH=$PATH:/sbin
export PATH=$PATH:/usr/bin
export PATH=$PATH:/usr/sbin
export PATH=$PATH:/usr/local/sbin
export PATH=$CARGO_HOME/bin:$PATH
export PATH=$ANT_HOME/bin:$PATH
export PATH=$MAVEN_HOME/bin:$PATH
export PATH=$GRADLE_HOME/bin:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$PATH:$PYTHON_HOME/bin
export PATH=$HOME/.jenv/bin:$PATH
# export PATH=$ANDROID_HOME/build-tools/23.0.1:$PATH
export PATH=$PATH:$NODE_HOME/bin
export PATH=$PATH:$KINDLEGEN_HOME/kindlegen
export PATH=$PATH:/usr/local/m-cli
export PATH=$PATH:/usr/local/opt/qt/bin
export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin
## RUBY see brew formule
## If you need to have ruby first in your PATH run:
export PATH=$PATH:/usr/local/opt/ruby/bin
export PATH=$HOME/.gem/ruby/2.6.0/bin:$PATH
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH=$PATH:$HOME/.rvm/bin
export PATH=/usr/local/opt/gnu-getopt/bin:$PATH
export PATH=/usr/local/opt/gettext/bin:$PATH
## For compilers to find ruby you may need to set:
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
## For pkg-config to find ruby you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"
## NVM
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
[ -x "$(command -v npm)" ] && export NODE_PATH=$NODE_PATH:`npm root -g`
#export EDITOR='/Applications/Emacs.app/Contents/MacOS/Emacs -nw'
export EDITOR='vim'
#export EDITOR="emacsclient --alternate-editor /Applications/Emacs.app/Contents/MacOS/Emacs"
#export VISUAL=${EDITOR}
#export ALTERNATE_EDITOR='/Applications/Emacs.app/Contents/MacOS/Emacs'
export SBT_OPTS='-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M'
#AWS
export EC2_REGION='eu-west-1'
# fixes for the locale, see https://github.com/robbyrussell/oh-my-zsh/issues/6985
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
#ENV
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
================================================
FILE: .zshrc
================================================
## DEBUG ZSH: Performance see bottom
## zmodload zsh/zprof # top of the .zshrc file
# Pure theme, not an omz one, see https://github.com/sindresorhus/pure#getting-started .zshrc
autoload -U promptinit; promptinit
prompt pure
#ssh-agent plugin see https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/ssh-agent
zstyle :omz:plugins:ssh-agent agent-forwarding on
export BULLETTRAIN_PROMPT_ORDER=(
time
dir
screen
perl
java
virtualenv
nvm
aws
go
rust
elixir
git
hg
cmd_exec_time
)
# `brew --prefix`/etc/profile.d/z.sh
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# ===== Basics
setopt no_beep # don't beep on error
setopt interactive_comments # Allow comments even in interactive shells (especially for Muness)
# ===== Changing Directories
setopt auto_cd # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
setopt cdablevarS # if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory
setopt pushd_ignore_dups # don't push multiple copies of the same directory onto the directory stack
# ===== Expansion and Globbing
setopt extended_glob # treat #, ~, and ^ as part of patterns for filename generation
# ===== History
setopt append_history # Allow multiple terminal sessions to all append to one zsh command history
setopt extended_history # save timestamp of command and duration
setopt inc_append_history # Add comamnds as they are typed, don't wait until shell exit
setopt hist_expire_dups_first # when trimming history, lose oldest duplicates first
setopt hist_ignore_dups # Do not write events to history that are duplicates of previous events
setopt hist_ignore_space # remove command line from history list when first character on the line is a space
setopt hist_find_no_dups # When searching history don't display results already cycled through twice
setopt hist_reduce_blanks # Remove extra blanks from each command line being added to history
setopt hist_verify # don't execute, just expand history
setopt share_history # imports new commands and appends typed commands to history
# ===== Completion
setopt always_to_end # When completing from the middle of a word, move the cursor to the end of the word
setopt auto_menu # show completion menu on successive tab press. needs unsetop menu_complete to work
setopt auto_name_dirs # any parameter that is set to the absolute name of a directory immediately becomes a name for that directory
setopt complete_in_word # Allow completion from within a word/phrase
unsetopt menu_complete # do not autoselect the first completion entry
# ===== Correction
setopt correct # spelling correction for commands
setopt correctall # spelling correction for arguments
# ===== Prompt
setopt prompt_subst # Enable parameter expansion, command substitution, and arithmetic expansion in the prompt
setopt transient_rprompt # only show the rprompt on the current prompt
# ===== Scripts and Functions
setopt multios # perform implicit tees or cats when multiple redirections are attempted
# ===== debug
# setopt XTRACE VERBOSE
# Helps whith the quotes problem
setopt rcquotes
# custom theme inc. java settings, see https://github.com/caiogondim/bullet-train.zsh
#export ZSH_THEME="bullet-train"
export ZSH_THEME=""
export DEFAULT_USER="ad"
#Aliases
# Colored cal output
alias cal="cal | grep --color=auto -E '( |^)$(date +)|$'"
alias hoy="date +%F"
#for emacs
#alias emacs="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient --alternate-editor /Applications/Emacs.app/Contents/MacOS/Emacs"
alias emc="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
alias zshconfig="emc ~/.zshrc"
alias ohmyzsh="emc ~/.oh-my-zsh"
alias rmoldelc="cd ~/.emacs.d/ && find . -type f -name \'*.elc\' -exec rm -fv {} \;"
alias compileelcs="cd ~/.emacs.d/ && /Applications/Emacs.app/Contents/MacOS/Emacs --batch -f batch-byte-compile **/*.el ;"
alias optimizeemacs="rmoldelc && sleep 4 && compileelcs"
alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
alias bower="noglob bower"
alias pginit="postgres -D /usr/local/var/postgres"
#Tasks
alias brewup="brew -v update && brew -v upgrade && brew -v upgrade --cask" #maybe brew cask upgrade --greedy
alias brewclean="brew -v cleanup && rm -rf $(brew --cache) && brew -v doctor"
alias pipup="pip3 list --outdated --format=freeze | grep -v '^\\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U"
alias goup="go get -u -v all"
alias npmup="ncu -g"
# Enable tab completion of flags
source $(dirname $(gem which colorls))/tab_complete.sh
# other colorls aliases some from https://gist.github.com/rjhilgefort/51ea47dd91bcd90cd6d9b3b199188c16
alias lc="colorls -lA --sd"
alias gtc="colorls --git-status --tree"
alias tc="colorls -lA --tree"
# Move standard ls
alias ols="ls"
# Base formats
alias ls="colorls -A" # short, multi-line
alias ll="colorls -1A" # list, 1 per line
alias ld="ll"
alias la="colorls -lA" # list w/ info
# [d] Sort output with directories first
alias lsd="ls --sort-dirs"
alias lld="ll --sort-dirs"
alias ldd="ld --sort-dirs"
alias lad="la --sort-dirs"
# [t] Sort output with recent modified first
alias lst="ls -t"
alias llt="ll -t"
alias ldt="ld -t"
alias lat="la -t"
# [g] Add git status of each item in output
alias lsg="ls --git-status"
alias llg="ll --git-status"
alias ldg="ld --git-status"
alias lag="la --git-status"
# bat i.p.v. cat
alias cat="bat --paging=never"
##alias protractor="/usr/local/share/npm/bin/protractor"
## Git graph alias soruce http://stackoverflow.com/questions/1057564/pretty-git-branch-graphs
##alias lg1="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative"
##alias lg2="git log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit"
#alias lg=!"git lg1"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
export UPDATE_ZSH_DAYS=30
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to show the commandline tip in the adben's theme
ENABLE_COMMAND_TIP="false"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
#necesary for my theme
SVN_SHOW_BRANCH="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(brew colorize command-not-found common-aliases cp dash dircycle dirhistory dirpersist docker emacs extract gem git gitignore git-extras git-hubflow gitfast github git-prompt gnu-utils golang history history-substring-search httpie jenv jsontools last-working-dir lein lol macos mvn nmap npm nvm oc percol perl python pip pipenv repo rsync rust safe-paste screen singlechar spring sudo svcat swiftpm thefuck themes tmux transfer urltools vscode web-search wd xcode yarn zsh-navigation-tools)
# plugins=(git)
source $ZSH/oh-my-zsh.sh
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
#see brew install zsh-completions
fpath=(/usr/local/share/zsh-completions $fpath)
# webassembly
# see https://webassembly.org/getting-started/developers-guide/
# source ${HOME}/l/emsdk/emsdk_env.sh
# Cargo
source $HOME/.cargo/env
#pyenv see https://github.com/pyenv/pyenv/blob/master/COMMANDS.md#pyenv-shell
eval "$(pyenv init -)"
# # DEBUG ZSH: uncomment This.. needs to be at the bottom
# zprof
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
export PATH="/usr/local/opt/python@3.8/bin:$PATH"
## export DOCKER_HOST="unix:///Users/ad/.local/share/containers/podman/machine/podman-machine-default/podman.sock"
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# Add Jbang to environment
alias j!=jbang
export PATH="$HOME/.jbang/bin:$PATH"
export PATH="/usr/local/opt/python@3.10/bin:$PATH"
fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit ; compinit
================================================
FILE: Brewfile
================================================
tap "adoptopenjdk/openjdk"
tap "d12frosted/emacs-plus"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "pivotal/tap"
tap "railwaycat/emacsmacport"
tap "sjmulder/tap"
brew "ant"
brew "openssl@1.1"
brew "aria2"
brew "aspell"
brew "readline"
brew "augeas"
brew "autoconf"
brew "automake"
brew "bat"
brew "icu4c"
brew "boost"
brew "brew-cask-completion"
brew "c-ares"
brew "libpng"
brew "freetype"
brew "fontconfig"
brew "gdbm"
brew "gettext"
brew "libffi"
brew "pcre"
brew "sqlite"
brew "xz"
brew "python"
brew "glib"
brew "lzo"
brew "pixman"
brew "cairo"
brew "dialog"
brew "certbot"
brew "rlwrap"
brew "clojure"
brew "cmake"
brew "coreutils"
brew "curl"
brew "dbus"
brew "elm"
brew "fribidi"
brew "giflib"
brew "gmp"
brew "libunistring"
brew "libtasn1"
brew "nettle"
brew "p11-kit"
brew "gnutls"
brew "graphite2"
brew "harfbuzz"
brew "jpeg"
brew "lame"
brew "libtiff"
brew "sdl2"
brew "x264"
brew "xvid"
brew "ffmpeg"
brew "libtool"
brew "pango"
brew "fontforge"
brew "gdk-pixbuf"
brew "gengetopt"
brew "geoip"
brew "git"
brew "gnu-getopt"
brew "gnu-sed"
brew "go"
brew "pkg-config"
brew "gobject-introspection"
brew "google-java-format"
brew "gradle"
brew "gsasl"
brew "hping"
brew "htop"
brew "httpie"
brew "hunspell"
brew "imagemagick"
brew "imagemagick@6"
brew "ispell"
brew "jenv"
brew "json-c"
brew "kotlin"
brew "leiningen"
brew "libcroco"
brew "libgpg-error"
brew "libgcrypt"
brew "libksba"
brew "librsvg"
brew "libyaml"
brew "lua"
brew "mailutils"
brew "makedepend"
brew "maven"
brew "ninja"
brew "meson", link: false
brew "multitail"
brew "socat"
brew "openshift-cli"
brew "percol"
brew "pyenv"
brew "python@2"
brew "qt"
brew "quazip"
brew "ruby-build"
brew "rbenv"
brew "ruby"
brew "sbt"
brew "scala"
brew "scrcpy"
brew "source-highlight"
brew "sphinx-doc"
brew "texinfo"
brew "thefuck"
brew "tmux"
brew "trash"
brew "tree"
brew "wget"
brew "youtube-dl"
brew "zsh"
brew "zsh-completions"
brew "d12frosted/emacs-plus/emacs-plus", args: ["HEAD", "with-emacs-icons-project-EmacsIcon4", "with-jansson", "with-no-frame-refocus", "with-pdumper", "without-spacemacs-icon"], link: false
brew "pivotal/tap/springboot"
brew "railwaycat/emacsmacport/emacs-mac", args: ["with-natural-title-bar"]
brew "sjmulder/tap/nostt"
cask "adoptopenjdk12-openj9"
cask "adoptopenjdk8-openj9"
cask "android-platform-tools"
cask "android-sdk"
cask "baudline"
cask "chromedriver"
cask "eqmac"
cask "font-3270-nerd-font"
cask "font-3270-nerd-font-mono"
cask "font-anonymouspro-nerd-font"
cask "font-anonymouspro-nerd-font-mono"
cask "font-arimo-nerd-font"
cask "font-arimo-nerd-font-mono"
cask "font-aurulentsansmono-nerd-font"
cask "font-aurulentsansmono-nerd-font-mono"
cask "font-bitstreamverasansmono-nerd-font"
cask "font-bitstreamverasansmono-nerd-font-mono"
cask "font-codenewroman-nerd-font"
cask "font-codenewroman-nerd-font-mono"
cask "font-cousine-nerd-font"
cask "font-cousine-nerd-font-mono"
cask "font-dejavusansmono-nerd-font"
cask "font-dejavusansmono-nerd-font-mono"
cask "font-droidsansmono-nerd-font"
cask "font-droidsansmono-nerd-font-mono"
cask "font-fantasquesansmono-nerd-font"
cask "font-fantasquesansmono-nerd-font-mono"
cask "font-fira-code"
cask "font-fira-mono"
cask "font-firacode-nerd-font"
cask "font-firacode-nerd-font-mono"
cask "font-firamono-nerd-font"
cask "font-firamono-nerd-font-mono"
cask "font-hack-nerd-font"
cask "font-iosevka"
cask "font-source-code-pro"
cask "inkscape"
cask "netbeans"
cask "teeworlds"
cask "tla-plus-toolbox-nightly"
cask "transmission"
cask "unetbootin"
cask "vlc"
cask "wireshark-chmodbpf"
cask "yacreader"
================================================
FILE: Custom.css
================================================
/*------------------------------------------------
How to Install 怎麼安裝
1. Download Custom.css
2. Replace the Custom.css file in your "User Stylesheets" folder. Here is how to find Custom.css:
Windows:
%LOCALAPPDATA%\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Linux:
~/.config/chromium/Default/User StyleSheets/Custom.css
Mac:
~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
------------------------------------------------*/
/* Inspect Triangle Style
------------------------------------------------*/
#console-messages .console-group-messages .section .header::before,
#console-messages .properties-tree li.parent::before
{
content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important;
}
#console-messages .console-group-messages .section.expanded .header::before,
#console-messages .properties-tree li.parent.expanded::before
{
content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important;
}
/* Globe Typography
------------------------------------------------*/
#-webkit-web-inspector .source-code,
#-webkit-web-inspector #main-panels .split-view-sidebar-right *,
#-webkit-web-inspector #console-message,
#-webkit-web-inspector .text-editor-contents,
#-webkit-web-inspector #console-view * {
font-size: 12px !important;
line-height: 1.2em !important;
font-family: PragmataPro, "Consolas", monospace !important;
}
/* Html inspect area
------------------------------------------------*/
#elements-content * {
}
/* animation settings */
#elements-content .parent,
#elements-content .parent * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-moz-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-ms-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-o-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */
-webkit-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-moz-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-ms-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-o-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */
}
/* style of line */
#elements-content.source-code {
background: #fcfcfc !important;
}
#elements-content .parent {
border: 1px solid transparent;
}
#elements-content .parent::before {
content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important;
position: relative;
z-index: 999;
}
/* expand style */
#elements-content .parent.expande {
background: #f1f1f1;
}
#elements-content .parent.expanded::before {
content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important;
}
/* select style */
#elements-content .parent.selected {
background: #D0F3F3;
border-left: 1px solid #000;
border-radius: 3px;
}
#elements-content .highlight {
color: #d4d4d4;
}
/* current select line style */
#-webkit-web-inspector .elements .selected {
background: #FAD165 !important;
border: 1px solid #aaa;
}
/* wrap expanded style */
#elements-content .parent.selected + *.expanded
{
background: #f1f1f1 !important;
border-left: 1px dashed #aaa;
border-bottom: 1px dashed #aaa;
border-right: 1px dashed #aaa;
border-radius: 0 0 3px 3px;
margin-bottom: 10px !important;
}
/* ------------------------------------------------
* End of Html inspect area /
/* CSS Inspect
------------------------------------------------*/
.webkit-css-selector {
color: #BD3E4D !important;
}
.webkit-css-comment {
color: #4DA95F !important;
font-style: italic !important;
line-height: 1.6em !important;
}
.webkit-css-url, .webkit-css-color, .webkit-css-string, .webkit-css-keyword,
.webkit-css-selector {
color: #389 !important;
}
.webkit-css-number {
color: #3F8EBB !important;
}
.webkit-css-important {
color: #0000FF !important;
}
.webkit-css-property,
.webkit-css-at-rule {
color: #C84252 !important;
}
#-webkit-web-inspector .selector-matches {
color: #333 !important;
font-weight: bold;
background: #FAD165 !important;
}
/* Inspect HTML style
------------------------------------------------*/
.webkit-html-comment {
color: #4DA95F !important;
font-style: italic !important;
}
.webkit-html-tag,
.webkit-html-doctype {
color: #6B4E32 !important;
}
.webkit-html-text-node,
.webkit-html-css-node,
.webkit-html-js-node {
color: #333 !important;
}
.webkit-html-attribute-name {
color: #BD3E4D !important;
}
.webkit-html-attribute-value {
color: #0049B8 !important;
}
/* JavaScript Style
------------------------------------------------*/
[class^="webkit-javascript"] {
}
.webkit-javascript-string {
color: #3F8EBB !important;
}
.webkit-javascript-comment {
color: #4DA95F !important;
font-style: italic !important;
line-height: 1.6em !important;
}
.webkit-javascript-number {
color: #429694 !important;
}
.webkit-javascript-ident {
color: #333 !important;
}
.webkit-javascript-keyword {
color: #C84252 !important;
}
/* Console Style
------------------------------------------------*/
#-webkit-web-inspector .console-user-command > .console-message-text {
color: #333 !important;
}
#-webkit-web-inspector #console-messages a {
color: #389 !important;
}
#-webkit-web-inspector #console-messages a:hover {
color: blue !important;
}
#-webkit-web-inspector .console-formatted-boolean {
color: #CC6600 !important;
}
#-webkit-web-inspector .console-error-level .console-message-text,
#-webkit-web-inspector .console-error-level .section .header .title {
}
#-webkit-web-inspector .console-error-level .children .source-code {
}
#-webkit-web-inspector .console-error-level .properties-tree {
font-weight: normal !important;
}
#-webkit-web-inspector .console-message,
#-webkit-web-inspector .console-user-command {
border: 0px !important;
border-bottom:1px dashed #ddd !important;
padding: 3px 0 !important;
line-height: 1.2em !important;
}
#-webkit-web-inspector .console-message {
}
#-webkit-web-inspector .console .console-formatted-object {
}
#-webkit-web-inspector .console .console-formatted-string {
color: #007cbb !important;
}
#-webkit-web-inspector .console .name {
color: #BD3E4D !important;
}
/* Source Code - Pane
------------------------------------------------*/
/* Generic */
#-webkit-web-inspector #main-panels .pane > .title,
#-webkit-web-inspector #main-panels .sidebar-separator,
#-webkit-web-inspector #main-panels .sidebar-pane-subtitle {
}
#-webkit-web-inspector .split-view-sidebar-right .webkit-css-property {
}
================================================
FILE: Custom_flymake.css
================================================
/*------------------------------------------------
How to Install 怎麼安裝
1. Download Custom.css
2. Replace the Custom.css file in your "User Stylesheets" folder. Here is how to find Custom.css:
Windows:
%LOCALAPPDATA%\Google\Chrome\User Data\Default\User StyleSheets\Custom.css
Linux:
~/.config/chromium/Default/User StyleSheets/Custom.css
Mac:
~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css
------------------------------------------------*/
/* Inspect Triangle Style
------------------------------------------------*/
#console-messages .console-group-messages .section .header::before,
#console-messages .properties-tree li.parent::before
{
content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important;
}
#console-messages .console-group-messages .section.expanded .header::before,
#console-messages .properties-tree li.parent.expanded::before
{
content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important;
}
/* Globe Typography
------------------------------------------------*/
#-webkit-web-inspector .source-code,
#-webkit-web-inspector #main-panels .split-view-sidebar-right *,
#-webkit-web-inspector #console-message,
#-webkit-web-inspector .text-editor-contents,
#-webkit-web-inspector #console-view * {
font-size: 12px !important;
line-height: 1.2em !important;
font-family: PragmataPro, "Consolas", monospace !important;
}
/* Html inspect area
------------------------------------------------*/
#elements-content * {
}
/* animation settings */
#elements-content .parent,
#elements-content .parent * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-moz-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-ms-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
-o-transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715);
transition: background 150ms cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */
-webkit-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-moz-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-ms-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
-o-transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715);
transition-timing-function: cubic-bezier(0.470, 0.000, 0.745, 0.715); /* easeInSine */
}
/* style of line */
#elements-content.source-code {
background: #fcfcfc !important;
}
#elements-content .parent {
border: 1px solid transparent;
}
#elements-content .parent::before {
content: url(chrome-devtools://devtools/Images/treeRightTriangleBlack.png) !important;
position: relative;
z-index: 999;
}
/* expand style */
#elements-content .parent.expande {
background: #f1f1f1;
}
#elements-content .parent.expanded::before {
content: url(chrome-devtools://devtools/Images/treeDownTriangleBlack.png) !important;
}
/* select style */
#elements-content .parent.selected {
background: #D0F3F3;
border-left: 1px solid #000;
border-radius: 3px;
}
#elements-content .highlight {
color: #d4d4d4;
}
/* current select line style */
#-webkit-web-inspector .elements .selected {
background: #FAD165 !important;
border: 1px solid #aaa;
}
/* wrap expanded style */
#elements-content .parent.selected + *.expanded
{
background: #f1f1f1 !important;
border-left: 1px dashed #aaa;
border-bottom: 1px dashed #aaa;
border-right: 1px dashed #aaa;
border-radius: 0 0 3px 3px;
margin-bottom: 10px !important;
}
/* ------------------------------------------------
* End of Html inspect area /
/* CSS Inspect
------------------------------------------------*/
.webkit-css-selector {
color: #BD3E4D !important;
}
.webkit-css-comment {
color: #4DA95F !important;
font-style: italic !important;
line-height: 1.6em !important;
}
.webkit-css-url, .webkit-css-color, .webkit-css-string, .webkit-css-keyword,
.webkit-css-selector {
color: #389 !important;
}
.webkit-css-number {
color: #3F8EBB !important;
}
.webkit-css-important {
color: #0000FF !important;
}
.webkit-css-property,
.webkit-css-at-rule {
color: #C84252 !important;
}
#-webkit-web-inspector .selector-matches {
color: #333 !important;
font-weight: bold;
background: #FAD165 !important;
}
/* Inspect HTML style
------------------------------------------------*/
.webkit-html-comment {
color: #4DA95F !important;
font-style: italic !important;
}
.webkit-html-tag,
.webkit-html-doctype {
color: #6B4E32 !important;
}
.webkit-html-text-node,
.webkit-html-css-node,
.webkit-html-js-node {
color: #333 !important;
}
.webkit-html-attribute-name {
color: #BD3E4D !important;
}
.webkit-html-attribute-value {
color: #0049B8 !important;
}
/* JavaScript Style
------------------------------------------------*/
[class^="webkit-javascript"] {
}
.webkit-javascript-string {
color: #3F8EBB !important;
}
.webkit-javascript-comment {
color: #4DA95F !important;
font-style: italic !important;
line-height: 1.6em !important;
}
.webkit-javascript-number {
color: #429694 !important;
}
.webkit-javascript-ident {
color: #333 !important;
}
.webkit-javascript-keyword {
color: #C84252 !important;
}
/* Console Style
------------------------------------------------*/
#-webkit-web-inspector .console-user-command > .console-message-text {
color: #333 !important;
}
#-webkit-web-inspector #console-messages a {
color: #389 !important;
}
#-webkit-web-inspector #console-messages a:hover {
color: blue !important;
}
#-webkit-web-inspector .console-formatted-boolean {
color: #CC6600 !important;
}
#-webkit-web-inspector .console-error-level .console-message-text,
#-webkit-web-inspector .console-error-level .section .header .title {
}
#-webkit-web-inspector .console-error-level .children .source-code {
}
#-webkit-web-inspector .console-error-level .properties-tree {
font-weight: normal !important;
}
#-webkit-web-inspector .console-message,
#-webkit-web-inspector .console-user-command {
border: 0px !important;
border-bottom:1px dashed #ddd !important;
padding: 3px 0 !important;
line-height: 1.2em !important;
}
#-webkit-web-inspector .console-message {
}
#-webkit-web-inspector .console .console-formatted-object {
}
#-webkit-web-inspector .console .console-formatted-string {
color: #007cbb !important;
}
#-webkit-web-inspector .console .name {
color: #BD3E4D !important;
}
/* Source Code - Pane
------------------------------------------------*/
/* Generic */
#-webkit-web-inspector #main-panels .pane > .title,
#-webkit-web-inspector #main-panels .sidebar-separator,
#-webkit-web-inspector #main-panels .sidebar-pane-subtitle {
}
#-webkit-web-inspector .split-view-sidebar-right .webkit-css-property {
}
================================================
FILE: README.md
================================================
# config
The config files for most of the tools I use
================================================
FILE: VPN-Unified-Cloud-Formation.json
================================================
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "30MHz Private and secure VPN template with support for L2TP and PPTP. Based on the template at https://s3.amazonaws.com/webdigi/VPN/Unified-Cloud-Formation.json",
"Mappings": {
"AWSInstanceType2Arch": {
"High.Speed.VPN-Paid": {
"InstanceType": "t2.medium"
},
"Standard.VPN-Free": {
"InstanceType": "t2.micro"
},
"Ultra.High.Speed.VPN-Paid": {
"InstanceType": "m3.xlarge"
}
},
"AWSRegionArch2AMI": {
"ap-northeast-1": {
"HVM64": "ami-20b6aa21"
},
"ap-southeast-1": {
"HVM64": "ami-ca381398"
},
"ap-southeast-2": {
"HVM64": "ami-abeb9e91"
},
"eu-central-1": {
"HVM64": "ami-9a380b87"
},
"eu-west-1": {
"HVM64": "ami-234ecc54"
},
"sa-east-1": {
"HVM64": "ami-69f54974"
},
"us-east-1": {
"HVM64": "ami-9a562df2"
},
"us-west-1": {
"HVM64": "ami-5c120b19"
},
"us-west-2": {
"HVM64": "ami-29ebb519"
}
}
},
"Outputs": {
"VPNServerAddress": {
"Description": "Use the IP as Server Address or VPN Host",
"Value": {
"Fn::Join": [
"",
[
"",
{
"Fn::GetAtt": [
"VPNServerInstance",
"PublicIp"
]
}
]
]
}
}
},
"Parameters": {
"Speed": {
"AllowedValues": [
"Standard.VPN-Free",
"High.Speed.VPN-Paid",
"Ultra.High.Speed.VPN-Paid"
],
"Default": "Standard.VPN-Free",
"Description": "Network Speed of VPN Server. Standard should do for most browsing and video.",
"Type": "String"
},
"Username": {
"AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*",
"ConstraintDescription": "must begin with a letter and contain only alphanumeric characters.",
"Description": "VPN Username",
"MaxLength": "255",
"MinLength": "1",
"Type": "String"
},
"VPNPassword": {
"ConstraintDescription": "must contain atleast 4 characters.",
"Description": "VPN Password (Min 4 characters)",
"MaxLength": "255",
"MinLength": "4",
"NoEcho": "true",
"Type": "String"
},
"VPNPhrase": {
"ConstraintDescription": "must contain atleast 4 characters.",
"Description": "Passphrase for IPSEC PSK (Min 4 characters)",
"MaxLength": "255",
"MinLength": "4",
"NoEcho": "true",
"Type": "String"
}
},
"Resources": {
"VPNSecurityGroup": {
"Properties": {
"GroupDescription": "VPN Security Groups",
"SecurityGroupIngress": [
{
"CidrIp": "0.0.0.0/0",
"FromPort": "500",
"IpProtocol": "tcp",
"ToPort": "500"
},
{
"CidrIp": "0.0.0.0/0",
"FromPort": "500",
"IpProtocol": "udp",
"ToPort": "500"
},
{
"CidrIp": "0.0.0.0/0",
"FromPort": "4500",
"IpProtocol": "udp",
"ToPort": "4500"
},
{
"CidrIp": "0.0.0.0/0",
"FromPort": "1723",
"IpProtocol": "tcp",
"ToPort": "1723"
},
{
"CidrIp": "0.0.0.0/0",
"FromPort": "1723",
"IpProtocol": "udp",
"ToPort": "1723"
}
]
},
"Type": "AWS::EC2::SecurityGroup"
},
"VPNServerInstance": {
"Properties": {
"ImageId": {
"Fn::FindInMap": [
"AWSRegionArch2AMI",
{
"Ref": "AWS::Region"
},
"HVM64"
]
},
"InstanceType": {
"Fn::FindInMap": [
"AWSInstanceType2Arch",
{
"Ref": "Speed"
},
"InstanceType"
]
},
"SecurityGroups": [
{
"Ref": "VPNSecurityGroup"
}
],
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"",
[
"#!/bin/sh\n",
"VPN_USER=",
{
"Ref": "Username"
},
"\n",
"VPN_PASSWORD=",
{
"Ref": "VPNPassword"
},
"\n",
"IPSEC_PSK=",
{
"Ref": "VPNPhrase"
},
"\n",
"\n",
"# Update server\n",
"apt-get update && apt-get upgrade -y\n",
"\n",
"# VPN 1 - Setup L2TP-IPSEC\n",
"PRIVATE_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/local-ipv4'`\n",
"PUBLIC_IP=`wget -q -O - 'http://169.254.169.254/latest/meta-data/public-ipv4'`\n",
"\n",
"apt-get install -y openswan xl2tpd\n",
"\n",
"cat > /etc/ipsec.conf <<EOF\n",
"version 2.0\n",
"\n",
"config setup\n",
" dumpdir=/var/run/pluto/\n",
" nat_traversal=yes\n",
" virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:25.0.0.0/8,%v6:fd00::/8,%v6:fe80::/10\n",
" oe=off\n",
" protostack=netkey\n",
" nhelpers=0\n",
" interfaces=%defaultroute\n",
"\n",
"conn vpnpsk\n",
" auto=add\n",
" left=$PRIVATE_IP\n",
" leftid=$PUBLIC_IP\n",
" leftsubnet=$PRIVATE_IP/32\n",
" leftnexthop=%defaultroute\n",
" leftprotoport=17/1701\n",
" rightprotoport=17/%any\n",
" right=%any\n",
" rightsubnetwithin=0.0.0.0/0\n",
" forceencaps=yes\n",
" authby=secret\n",
" pfs=no\n",
" type=transport\n",
" auth=esp\n",
" ike=3des-sha1\n",
" phase2alg=3des-sha1\n",
" dpddelay=30\n",
" dpdtimeout=120\n",
" dpdaction=clear\n",
"EOF\n",
"\n",
"cat > /etc/ipsec.secrets <<EOF\n",
"$PUBLIC_IP %any : PSK \"$IPSEC_PSK\"\n",
"EOF\n",
"\n",
"cat > /etc/xl2tpd/xl2tpd.conf <<EOF\n",
"[global]\n",
"port = 1701\n",
"\n",
";debug avp = yes\n",
";debug network = yes\n",
";debug state = yes\n",
";debug tunnel = yes\n",
"\n",
"[lns default]\n",
"ip range = 192.168.42.10-192.168.42.250\n",
"local ip = 192.168.42.1\n",
"require chap = yes\n",
"refuse pap = yes\n",
"require authentication = yes\n",
"name = l2tpd\n",
";ppp debug = yes\n",
"pppoptfile = /etc/ppp/options.xl2tpd\n",
"length bit = yes\n",
"EOF\n",
"\n",
"cat > /etc/ppp/options.xl2tpd <<EOF\n",
"ipcp-accept-local\n",
"ipcp-accept-remote\n",
"ms-dns 8.8.8.8\n",
"ms-dns 8.8.4.4\n",
"noccp\n",
"auth\n",
"crtscts\n",
"idle 1800\n",
"mtu 1280\n",
"mru 1280\n",
"lock\n",
"connect-delay 5000\n",
"EOF\n",
"\n",
"cat > /etc/ppp/chap-secrets <<EOF\n",
"# Secrets for authentication using CHAP\n",
"# client\tserver\tsecret\t\t\tIP addresses\n",
"\n",
"$VPN_USER\tl2tpd $VPN_PASSWORD *\n",
"EOF\n",
"\n",
"iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o eth0 -j MASQUERADE\n",
"echo 1 > /proc/sys/net/ipv4/ip_forward\n",
"\n",
"iptables-save > /etc/iptables.rules\n",
"\n",
"cat > /etc/network/if-pre-up.d/iptablesload <<EOF\n",
"#!/bin/sh\n",
"iptables-restore < /etc/iptables.rules\n",
"echo 1 > /proc/sys/net/ipv4/ip_forward\n",
"exit 0\n",
"EOF\n",
"\n",
"chmod a+x /etc/network/if-pre-up.d/iptablesload\n",
"\n",
"/etc/init.d/ipsec restart\n",
"/etc/init.d/xl2tpd restart\n",
"\n",
"#VPN 2 - Setup PPTP Server\n",
"apt-get install pptpd -y\n",
"echo \"localip 10.0.0.1\" >> /etc/pptpd.conf\n",
"echo \"remoteip 10.0.0.100-200\" >> /etc/pptpd.conf\n",
"echo \"$VPN_USER pptpd $VPN_PASSWORD *\" >> /etc/ppp/chap-secrets\n",
"echo \"ms-dns 8.8.8.8\" >> /etc/ppp/pptpd-options\n",
"echo \"ms-dns 8.8.4.4\" >> /etc/ppp/pptpd-options\n",
"service pptpd restart\n",
"\n",
"echo \"net.ipv4.ip_forward = 1\" >> /etc/sysctl.conf\n",
"sysctl -p\n",
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save\n"
]
]
}
}
},
"Type": "AWS::EC2::Instance"
}
}
}
================================================
FILE: adben-new.zsh-theme
================================================
#!/usr/bin/env zsh
### Shows prompt character according to the VCS you are currently in or super/normal user
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
svn info >/dev/null 2>/dev/null && echo '⚡' && return
echo '%#'
}
########## VCS ###########
### Coloured Git state indicator → taken from: http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green} *%f'
zstyle ':vcs_info:*' unstagedstr '%F{yellow} *%f'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{red}:%f%F{yellow}%r%f'
zstyle ':vcs_info:*' enable git svn hg
precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{cyan}]%f'
} else {
zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{red} *%f%F{cyan}]%f'
}
vcs_info
}
########## VCS ###########
######### PROMPT #########
setopt prompt_subst
autoload -U colors && colors
local USER_HOST_CURRENT_DIR='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f'
#local COMMAND_TIP='%{$terminfo[bold]$fg[cyan]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}'
### The left side of a normal prompt
### shows: username, hostname, (p|t)ts, working directory, standard prompt character or VCS sign; special styling for root.
PROMPT='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{red}%m%f on %F{yellow}%y%f in %F{cyan}%~%f
{${vcs_info_msg_0_} %(!.%F{red}$(prompt_char)%f.$(prompt_char))} : %{$reset_color%} '
### The right side of a normal prompt
### shows: Date format dd.mmm,yy hh:mm:ss
RPROMPT='%{$reset_color%}[%F{green}%D{%e.%b.%y %H:%M:%S}%f ]%{$reset_color%}'
# ^^^^^^^^^^^^^^^^^ ← this is the part that defines date and time.
### Loop prompt
PROMPT2='{%_} '
### Selection prompt
PROMPT3='{ … } '
######### PROMPT #########
================================================
FILE: adben.zsh-theme
================================================
#!/usr/bin/env zsh
<<<<<<< HEAD
########## VCS ###########
### Coloured Git state indicator → taken from: http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green} ●%f'
zstyle ':vcs_info:*' unstagedstr '%F{yellow} ●%f'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{red}:%f%F{yellow}%r%f'
zstyle ':vcs_info:*' enable git svn hg
precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{cyan}]%f'
} else {
zstyle ':vcs_info:*' formats '%F{cyan}[%b%c%u%f%F{red} ●%f%F{cyan}]%f'
}
vcs_info
}
### Shows prompt character according to the VCS you are currently in or super/normal user
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
svn info >/dev/null 2>/dev/null && echo '⚡' && return
echo '%#'
}
########## VCS ###########
######### PROMPT #########
setopt prompt_subst
autoload -U colors && colors
local USER_HOST_CURRENT_DIR='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f'
local COMMAND_TIP='%{$terminfo[bold]$fg[cyan]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}'
### The left side of a normal prompt
### shows: username, hostname, (p|t)ts, working directory, standard prompt character or VCS sign; special styling for root.
PROMPT='%(!.%B%U%F{blue}%n%f%u%b.%F{blue}%n%f) at %F{magenta}%m%f on %F{yellow}%y%f in %F{cyan}%~%f
{${vcs_info_msg_0_} %(!.%F{red}$(prompt_char)%f.$(prompt_char))} : %{$reset_color%}'
### The right side of a normal prompt
### shows: Date format dd.mmm,yy hh:mm:ss
RPROMPT='%{$reset_color%}[%F{green}%D{%e.%b.%y %H:%M:%S}%f ]%{$reset_color%}'
# ^^^^^^^^^^^^^^^^^ ← this is the part that defines date and time.
### Loop prompt
PROMPT2='{%_} '
### Selection prompt
PROMPT3='{ … } '
######### PROMPT #########
=======
local USER_HOST='%{$terminfo[bold]$fg[yellow]%}%n@%m%{$reset_color%}'
local RETURN_CODE="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local GIT_BRANCH='%{$terminfo[bold]$fg[red]%}$(git_prompt_info)%{$reset_color%}'
local CURRENT_DIR='%{$terminfo[bold]$fg[green]%} %~%{$reset_color%}'
local RUBY_RVM='%{$fg[gray]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
local COMMAND_TIP='%{$terminfo[bold]$fg[blue]%}$(wget -qO - http://www.commandlinefu.com/commands/random/plaintext | sed 1d | sed '/^$/d' | sed 's/^/║/g')%{$reset_color%}'
######### PROMPT #########
PROMPT="%{$terminfo[bold]$fg[blue]%}╔═ %{$reset_color%}${USER_HOST} ${CURRENT_DIR} ${RUBY_RVM} ${GIT_BRANCH}
${COMMAND_TIP}
%{$terminfo[bold]$fg[blue]%}╚═ %{$reset_color%}%B%{$terminfo[bold]$fg[white]%}$%b%{$reset_color%} "
RPS1='${RETURN_CODE}'
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'
######### PROMPT #########
########## GIT ###########
ZSH_THEME_GIT_PROMPT_PREFIX="‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%}›"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"
########## GIT ###########
>>>>>>> 6d7a275972918bf535e80a688914ba8f39f65110
================================================
FILE: bullet-train.zsh-theme
================================================
# README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
# In addition, I recommend the
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over
# Terminal.app - it has significantly better color fidelity.
# ------------------------------------------------------------------------------
# CONFIGURATION
# The default configuration, that can be overwrite in your .zshrc file
# ------------------------------------------------------------------------------
VIRTUAL_ENV_DISABLE_PROMPT=false
# Define order and content of prompt
if [ ! -n "${BULLETTRAIN_PROMPT_ORDER+1}" ]; then
BULLETTRAIN_PROMPT_ORDER=(
time
status
custom
context
dir
screen
perl
nvm
aws
go
rust
elixir
git
hg
cmd_exec_time
)
fi
# PROMPT
if [ ! -n "${BULLETTRAIN_PROMPT_CHAR+1}" ]; then
BULLETTRAIN_PROMPT_CHAR="\$"
fi
if [ ! -n "${BULLETTRAIN_PROMPT_ROOT+1}" ]; then
BULLETTRAIN_PROMPT_ROOT=true
fi
if [ ! -n "${BULLETTRAIN_PROMPT_SEPARATE_LINE+1}" ]; then
BULLETTRAIN_PROMPT_SEPARATE_LINE=true
fi
if [ ! -n "${BULLETTRAIN_PROMPT_ADD_NEWLINE+1}" ]; then
BULLETTRAIN_PROMPT_ADD_NEWLINE=true
fi
# STATUS
if [ ! -n "${BULLETTRAIN_STATUS_EXIT_SHOW+1}" ]; then
BULLETTRAIN_STATUS_EXIT_SHOW=false
fi
if [ ! -n "${BULLETTRAIN_STATUS_BG+1}" ]; then
BULLETTRAIN_STATUS_BG=green
fi
if [ ! -n "${BULLETTRAIN_STATUS_ERROR_BG+1}" ]; then
BULLETTRAIN_STATUS_ERROR_BG=red
fi
if [ ! -n "${BULLETTRAIN_STATUS_FG+1}" ]; then
BULLETTRAIN_STATUS_FG=white
fi
# TIME
if [ ! -n "${BULLETTRAIN_TIME_BG+1}" ]; then
BULLETTRAIN_TIME_BG=white
fi
if [ ! -n "${BULLETTRAIN_TIME_FG+1}" ]; then
BULLETTRAIN_TIME_FG=black
fi
# CUSTOM
if [ ! -n "${BULLETTRAIN_CUSTOM_MSG+1}" ]; then
BULLETTRAIN_CUSTOM_MSG=false
fi
if [ ! -n "${BULLETTRAIN_CUSTOM_BG+1}" ]; then
BULLETTRAIN_CUSTOM_BG=black
fi
if [ ! -n "${BULLETTRAIN_CUSTOM_FG+1}" ]; then
BULLETTRAIN_CUSTOM_FG=default
fi
# VIRTUALENV
if [ ! -n "${BULLETTRAIN_VIRTUALENV_BG+1}" ]; then
BULLETTRAIN_VIRTUALENV_BG=yellow
fi
if [ ! -n "${BULLETTRAIN_VIRTUALENV_FG+1}" ]; then
BULLETTRAIN_VIRTUALENV_FG=blue
fi
if [ ! -n "${BULLETTRAIN_VIRTUALENV_PREFIX+1}" ]; then
BULLETTRAIN_VIRTUALENV_PREFIX=" "
fi
# NVM
if [ ! -n "${BULLETTRAIN_NVM_BG+1}" ]; then
BULLETTRAIN_NVM_BG=green
fi
if [ ! -n "${BULLETTRAIN_NVM_FG+1}" ]; then
BULLETTRAIN_NVM_FG=red
fi
if [ ! -n "${BULLETTRAIN_NVM_PREFIX+1}" ]; then
BULLETTRAIN_NVM_PREFIX=" "
fi
# AWS
if [ ! -n "${BULLETTRAIN_AWS_BG+1}" ]; then
BULLETTRAIN_AWS_BG=yellow
fi
if [ ! -n "${BULLETTRAIN_AWS_FG+1}" ]; then
BULLETTRAIN_AWS_FG=black
fi
if [ ! -n "${BULLETTRAIN_AWS_PREFIX+1}" ]; then
BULLETTRAIN_AWS_PREFIX=" "
fi
# RUBY
if [ ! -n "${BULLETTRAIN_RUBY_BG+1}" ]; then
BULLETTRAIN_RUBY_BG=red
fi
if [ ! -n "${BULLETTRAIN_RUBY_FG+1}" ]; then
BULLETTRAIN_RUBY_FG=white
fi
if [ ! -n "${BULLETTRAIN_RUBY_PREFIX+1}" ]; then
BULLETTRAIN_RUBY_PREFIX=" "
fi
# Java
if [ ! -n "${BULLETTRAIN_JAVA_BG+1}" ]; then
BULLETTRAIN_JAVA_BG=cyan
fi
if [ ! -n "${BULLETTRAIN_JAVA_FG+1}" ]; then
BULLETTRAIN_JAVA_FG=black
fi
if [ ! -n "${BULLETTRAIN_JAVA_PREFIX+1}" ]; then
BULLETTRAIN_JAVA_PREFIX=" "
fi
# Go
if [ ! -n "${BULLETTRAIN_GO_BG+1}" ]; then
BULLETTRAIN_GO_BG=cyan
fi
if [ ! -n "${BULLETTRAIN_GO_FG+1}" ]; then
BULLETTRAIN_GO_FG=white
fi
if [ ! -n "${BULLETTRAIN_GO_PREFIX+1}" ]; then
BULLETTRAIN_GO_PREFIX=" "
fi
# Rust
if [ ! -n "${BULLETTRAIN_RUST_BG+1}" ]; then
BULLETTRAIN_RUST_BG=black
fi
if [ ! -n "${BULLETTRAIN_RUST_FG+1}" ]; then
BULLETTRAIN_RUST_FG=white
fi
if [ ! -n "${BULLETTRAIN_RUST_PREFIX+1}" ]; then
BULLETTRAIN_RUST_PREFIX=" "
fi
# Kubernetes Context
if [ ! -n "${BULLETTRAIN_KCTX_BG+1}" ]; then
BULLETTRAIN_KCTX_BG=yellow
fi
if [ ! -n "${BULLETTRAIN_KCTX_FG+1}" ]; then
BULLETTRAIN_KCTX_FG=white
fi
if [ ! -n "${BULLETTRAIN_KCTX_PREFIX+1}" ]; then
BULLETTRAIN_KCTX_PREFIX="⎈ "
fi
# ELIXIR
if [ ! -n "${BULLETTRAIN_ELIXIR_BG+1}" ]; then
BULLETTRAIN_ELIXIR_BG=magenta
fi
if [ ! -n "${BULLETTRAIN_ELIXIR_FG+1}" ]; then
BULLETTRAIN_ELIXIR_FG=white
fi
if [ ! -n "${BULLETTRAIN_ELIXIR_PREFIX+1}" ]; then
BULLETTRAIN_ELIXIR_PREFIX=" "
fi
# DIR
if [ ! -n "${BULLETTRAIN_DIR_BG+1}" ]; then
BULLETTRAIN_DIR_BG=blue
fi
if [ ! -n "${BULLETTRAIN_DIR_FG+1}" ]; then
BULLETTRAIN_DIR_FG=white
fi
if [ ! -n "${BULLETTRAIN_DIR_CONTEXT_SHOW+1}" ]; then
BULLETTRAIN_DIR_CONTEXT_SHOW=false
fi
if [ ! -n "${BULLETTRAIN_DIR_EXTENDED+1}" ]; then
BULLETTRAIN_DIR_EXTENDED=1
fi
# GIT
if [ ! -n "${BULLETTRAIN_GIT_COLORIZE_DIRTY+1}" ]; then
BULLETTRAIN_GIT_COLORIZE_DIRTY=false
fi
if [ ! -n "${BULLETTRAIN_GIT_COLORIZE_DIRTY_FG_COLOR+1}" ]; then
BULLETTRAIN_GIT_COLORIZE_DIRTY_FG_COLOR=black
fi
if [ ! -n "${BULLETTRAIN_GIT_COLORIZE_DIRTY_BG_COLOR+1}" ]; then
BULLETTRAIN_GIT_COLORIZE_DIRTY_BG_COLOR=yellow
fi
if [ ! -n "${BULLETTRAIN_GIT_BG+1}" ]; then
BULLETTRAIN_GIT_BG=white
fi
if [ ! -n "${BULLETTRAIN_GIT_FG+1}" ]; then
BULLETTRAIN_GIT_FG=black
fi
if [ ! -n "${BULLETTRAIN_GIT_EXTENDED+1}" ]; then
BULLETTRAIN_GIT_EXTENDED=true
fi
if [ ! -n "${BULLETTRAIN_GIT_PROMPT_CMD+1}" ]; then
BULLETTRAIN_GIT_PROMPT_CMD="\$(git_prompt_info)"
fi
# PERL
if [ ! -n "${BULLETTRAIN_PERL_BG+1}" ]; then
BULLETTRAIN_PERL_BG=yellow
fi
if [ ! -n "${BULLETTRAIN_PERL_FG+1}" ]; then
BULLETTRAIN_PERL_FG=black
fi
if [ ! -n "${BULLETTRAIN_PERL_PREFIX+1}" ]; then
BULLETTRAIN_PERL_PREFIX=🐪
fi
# CONTEXT
if [ ! -n "${BULLETTRAIN_CONTEXT_BG+1}" ]; then
BULLETTRAIN_CONTEXT_BG=black
fi
if [ ! -n "${BULLETTRAIN_CONTEXT_FG+1}" ]; then
BULLETTRAIN_CONTEXT_FG=default
fi
if [ ! -n "${BULLETTRAIN_CONTEXT_HOSTNAME+1}" ]; then
BULLETTRAIN_CONTEXT_HOSTNAME=%m
fi
# GIT PROMPT
if [ ! -n "${BULLETTRAIN_GIT_PREFIX+1}" ]; then
ZSH_THEME_GIT_PROMPT_PREFIX="\ue0a0 "
else
ZSH_THEME_GIT_PROMPT_PREFIX=$BULLETTRAIN_GIT_PREFIX
fi
if [ ! -n "${BULLETTRAIN_GIT_SUFFIX+1}" ]; then
ZSH_THEME_GIT_PROMPT_SUFFIX=""
else
ZSH_THEME_GIT_PROMPT_SUFFIX=$BULLETTRAIN_GIT_SUFFIX
fi
if [ ! -n "${BULLETTRAIN_GIT_DIRTY+1}" ]; then
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}✘%F{black}"
else
ZSH_THEME_GIT_PROMPT_DIRTY=$BULLETTRAIN_GIT_DIRTY
fi
if [ ! -n "${BULLETTRAIN_GIT_CLEAN+1}" ]; then
ZSH_THEME_GIT_PROMPT_CLEAN=" %F{green}✔%F{black}"
else
ZSH_THEME_GIT_PROMPT_CLEAN=$BULLETTRAIN_GIT_CLEAN
fi
if [ ! -n "${BULLETTRAIN_GIT_ADDED+1}" ]; then
ZSH_THEME_GIT_PROMPT_ADDED=" %F{green}✚%F{black}"
else
ZSH_THEME_GIT_PROMPT_ADDED=$BULLETTRAIN_GIT_ADDED
fi
if [ ! -n "${BULLETTRAIN_GIT_MODIFIED+1}" ]; then
ZSH_THEME_GIT_PROMPT_MODIFIED=" %F{blue}✹%F{black}"
else
ZSH_THEME_GIT_PROMPT_MODIFIED=$BULLETTRAIN_GIT_MODIFIED
fi
if [ ! -n "${BULLETTRAIN_GIT_DELETED+1}" ]; then
ZSH_THEME_GIT_PROMPT_DELETED=" %F{red}✖%F{black}"
else
ZSH_THEME_GIT_PROMPT_DELETED=$BULLETTRAIN_GIT_DELETED
fi
if [ ! -n "${BULLETTRAIN_GIT_UNTRACKED+1}" ]; then
ZSH_THEME_GIT_PROMPT_UNTRACKED=" %F{yellow}✭%F{black}"
else
ZSH_THEME_GIT_PROMPT_UNTRACKED=$BULLETTRAIN_GIT_UNTRACKED
fi
if [ ! -n "${BULLETTRAIN_GIT_RENAMED+1}" ]; then
ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
else
ZSH_THEME_GIT_PROMPT_RENAMED=$BULLETTRAIN_GIT_RENAMED
fi
if [ ! -n "${BULLETTRAIN_GIT_UNMERGED+1}" ]; then
ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
else
ZSH_THEME_GIT_PROMPT_UNMERGED=$BULLETTRAIN_GIT_UNMERGED
fi
if [ ! -n "${BULLETTRAIN_GIT_AHEAD+1}" ]; then
ZSH_THEME_GIT_PROMPT_AHEAD=" ⬆"
else
ZSH_THEME_GIT_PROMPT_AHEAD=$BULLETTRAIN_GIT_AHEAD
fi
if [ ! -n "${BULLETTRAIN_GIT_BEHIND+1}" ]; then
ZSH_THEME_GIT_PROMPT_BEHIND=" ⬇"
else
ZSH_THEME_GIT_PROMPT_BEHIND=$BULLETTRAIN_GIT_BEHIND
fi
if [ ! -n "${BULLETTRAIN_GIT_DIVERGED+1}" ]; then
ZSH_THEME_GIT_PROMPT_DIVERGED=" ⬍"
else
ZSH_THEME_GIT_PROMPT_DIVERGED=$BULLETTRAIN_GIT_PROMPT_DIVERGED
fi
# SCREEN
if [ ! -n "${BULLETTRAIN_SCREEN_BG+1}" ]; then
BULLETTRAIN_SCREEN_BG=white
fi
if [ ! -n "${BULLETTRAIN_SCREEN_FG+1}" ]; then
BULLETTRAIN_SCREEN_FG=black
fi
if [ ! -n "${BULLETTRAIN_SCREEN_PREFIX+1}" ]; then
BULLETTRAIN_SCREEN_PREFIX="⬗"
fi
# COMMAND EXECUTION TIME
if [ ! -n "${BULLETTRAIN_EXEC_TIME_ELAPSED+1}" ]; then
BULLETTRAIN_EXEC_TIME_ELAPSED=5
fi
if [ ! -n "${BULLETTRAIN_EXEC_TIME_BG+1}" ]; then
BULLETTRAIN_EXEC_TIME_BG=yellow
fi
if [ ! -n "${BULLETTRAIN_EXEC_TIME_FG+1}" ]; then
BULLETTRAIN_EXEC_TIME_FG=black
fi
# ------------------------------------------------------------------------------
# SEGMENT DRAWING
# A few functions to make it easy and re-usable to draw segmented prompts
# ------------------------------------------------------------------------------
CURRENT_BG='NONE'
SEGMENT_SEPARATOR=''
# Begin a segment
# Takes three arguments, background, foreground and text. All of them can be omitted,
# rendering default background/foreground and no text.
prompt_segment() {
local bg fg
[[ -n $1 ]] && bg="%K{$1}" || bg="%k"
[[ -n $2 ]] && fg="%F{$2}" || fg="%f"
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then
echo -n " %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
else
echo -n "%{$bg%}%{$fg%} "
fi
CURRENT_BG=$1
[[ -n $3 ]] && echo -n $3
}
# End the prompt, closing any open segments
prompt_end() {
if [[ -n $CURRENT_BG ]]; then
echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
else
echo -n "%{%k%}"
fi
echo -n "%{%f%}"
CURRENT_BG=''
}
# ------------------------------------------------------------------------------
# PROMPT COMPONENTS
# Each component will draw itself, and hide itself if no information needs
# to be shown
# ------------------------------------------------------------------------------
# Context: user@hostname (who am I and where am I)
context() {
local user="$(whoami)"
[[ "$user" != "$BULLETTRAIN_CONTEXT_DEFAULT_USER" || -n "$BULLETTRAIN_IS_SSH_CLIENT" ]] && echo -n "${user}@$BULLETTRAIN_CONTEXT_HOSTNAME"
}
prompt_context() {
local _context="$(context)"
[[ -n "$_context" ]] && prompt_segment $BULLETTRAIN_CONTEXT_BG $BULLETTRAIN_CONTEXT_FG "$_context"
}
# Based on http://stackoverflow.com/a/32164707/3859566
function displaytime {
local T=$1
local D=$((T/60/60/24))
local H=$((T/60/60%24))
local M=$((T/60%60))
local S=$((T%60))
[[ $D > 0 ]] && printf '%dd' $D
[[ $H > 0 ]] && printf '%dh' $H
[[ $M > 0 ]] && printf '%dm' $M
printf '%ds' $S
}
# Prompt previous command execution time
preexec() {
cmd_timestamp=`date +%s`
}
precmd() {
local stop=`date +%s`
local start=${cmd_timestamp:-$stop}
let BULLETTRAIN_last_exec_duration=$stop-$start
cmd_timestamp=''
}
prompt_cmd_exec_time() {
[ $BULLETTRAIN_last_exec_duration -gt $BULLETTRAIN_EXEC_TIME_ELAPSED ] && prompt_segment $BULLETTRAIN_EXEC_TIME_BG $BULLETTRAIN_EXEC_TIME_FG "$(displaytime $BULLETTRAIN_last_exec_duration)"
}
# Custom
prompt_custom() {
if [[ $BULLETTRAIN_CUSTOM_MSG == false ]]; then
return
fi
local custom_msg
eval custom_msg=$BULLETTRAIN_CUSTOM_MSG
[[ -n "${custom_msg}" ]] && prompt_segment $BULLETTRAIN_CUSTOM_BG $BULLETTRAIN_CUSTOM_FG "${custom_msg}"
}
# Git
prompt_git() {
if [[ "$(command git config --get oh-my-zsh.hide-status 2>/dev/null)" == "1" ]]; then
return
fi
local ref dirty mode repo_path git_prompt
repo_path=$(git rev-parse --git-dir 2>/dev/null)
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
if [[ $BULLETTRAIN_GIT_COLORIZE_DIRTY == true && -n $(git status --porcelain --ignore-submodules) ]]; then
BULLETTRAIN_GIT_BG=$BULLETTRAIN_GIT_COLORIZE_DIRTY_BG_COLOR
BULLETTRAIN_GIT_FG=$BULLETTRAIN_GIT_COLORIZE_DIRTY_FG_COLOR
fi
prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG
eval git_prompt=${BULLETTRAIN_GIT_PROMPT_CMD}
if [[ $BULLETTRAIN_GIT_EXTENDED == true ]]; then
echo -n ${git_prompt}$(git_prompt_status)
else
echo -n ${git_prompt}
fi
fi
}
prompt_hg() {
local rev status
if $(hg id >/dev/null 2>&1); then
if $(hg prompt >/dev/null 2>&1); then
if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
# if files are not added
prompt_segment red white
st='±'
elif [[ -n $(hg prompt "{status|modified}") ]]; then
# if any modification
prompt_segment yellow black
st='±'
else
# if working copy is clean
prompt_segment green black
fi
echo -n $(hg prompt "☿ {rev}@{branch}") $st
else
st=""
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
branch=$(hg id -b 2>/dev/null)
if $(hg st | grep -Eq "^\?"); then
prompt_segment red black
st='±'
elif $(hg st | grep -Eq "^(M|A)"); then
prompt_segment yellow black
st='±'
else
prompt_segment green black
fi
echo -n "☿ $rev@$branch" $st
fi
fi
}
# Dir: current working directory
prompt_dir() {
local dir=''
local _context="$(context)"
[[ $BULLETTRAIN_DIR_CONTEXT_SHOW == true && -n "$_context" ]] && dir="${dir}${_context}:"
if [[ $BULLETTRAIN_DIR_EXTENDED == 0 ]]; then
#short directories
dir="${dir}%1~"
elif [[ $BULLETTRAIN_DIR_EXTENDED == 2 ]]; then
#long directories
dir="${dir}%0~"
else
#medium directories (default case)
dir="${dir}%4(c:...:)%3c"
fi
prompt_segment $BULLETTRAIN_DIR_BG $BULLETTRAIN_DIR_FG $dir
}
# RUBY
# RVM: only shows RUBY info if on a gemset that is not the default one
# RBENV: shows current ruby version active in the shell; also with non-global gemsets if any is active
# CHRUBY: shows current ruby version active in the shell
prompt_ruby() {
if command -v rvm-prompt > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_RUBY_BG $BULLETTRAIN_RUBY_FG $BULLETTRAIN_RUBY_PREFIX" $(rvm-prompt i v g)"
elif command -v chruby > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_RUBY_BG $BULLETTRAIN_RUBY_FG $BULLETTRAIN_RUBY_PREFIX" $(chruby | sed -n -e 's/ \* //p')"
elif command -v rbenv > /dev/null 2>&1; then
current_gemset() {
echo "$(rbenv gemset active 2&>/dev/null | sed -e 's/ global$//')"
}
if [[ -n $(current_gemset) ]]; then
prompt_segment $BULLETTRAIN_RUBY_BG $BULLETTRAIN_RUBY_FG $BULLETTRAIN_RUBY_PREFIX" $(rbenv version | sed -e 's/ (set.*$//')"@"$(current_gemset)"
else
prompt_segment $BULLETTRAIN_RUBY_BG $BULLETTRAIN_RUBY_FG $BULLETTRAIN_RUBY_PREFIX" $(rbenv version | sed -e 's/ (set.*$//')"
fi
fi
}
# ELIXIR
prompt_elixir() {
if command -v elixir > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_ELIXIR_BG $BULLETTRAIN_ELIXIR_FG $BULLETTRAIN_ELIXIR_PREFIX" $(elixir -v | tail -n 1 | awk '{print $2}')"
fi
}
# PERL
# PLENV: shows current PERL version active in the shell
prompt_perl() {
if command -v plenv > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_PERL_BG $BULLETTRAIN_PERL_FG $BULLETTRAIN_PERL_PREFIX" $(plenv version | sed -e 's/ (set.*$//')"
fi
}
# Go
prompt_go() {
setopt extended_glob
if [[ (-f *.go(qN) || -d Godeps || -f glide.yaml) ]]; then
if command -v go > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_GO_BG $BULLETTRAIN_GO_FG $BULLETTRAIN_GO_PREFIX" $(go version | grep --colour=never -oE '[[:digit:]].[[:digit:]]+')"
fi
fi
}
# java
prompt_java() {
if [[ (-f pom.xml) ]]; then
prompt_segment $BULLETTRAIN_JAVA_BG $BULLETTRAIN_JAVA_FG $BULLETTRAIN_JAVA_PREFIX" $(jenv version | sed -e 's/ (set.*$//' | tr '\n' ' ' | sed 's/.$//')"
fi
}
# Rust
prompt_rust() {
if [[ (-f Cargo.toml) ]]; then
if command -v rustc > /dev/null 2>&1; then
prompt_segment $BULLETTRAIN_RUST_BG $BULLETTRAIN_RUST_FG $BULLETTRAIN_RUST_PREFIX" $(rustc -V version | cut -d' ' -f2)"
fi
fi
}
# Kubernetes Context
prompt_kctx() {
if [[ ! -n $BULLETTRAIN_KCTX_KCONFIG ]]; then
return
fi
if command -v kubectl > /dev/null 2>&1; then
if [[ -f $BULLETTRAIN_KCTX_KCONFIG ]]; then
prompt_segment $BULLETTRAIN_KCTX_BG $BULLETTRAIN_KCTX_FG $BULLETTRAIN_KCTX_PREFIX" $(cat $BULLETTRAIN_KCTX_KCONFIG|grep current-context| awk '{print $2}')"
fi
fi
}
# Virtualenv: current working virtualenv
prompt_virtualenv() {
local virtualenv_path="$VIRTUAL_ENV"
if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then
prompt_segment $BULLETTRAIN_VIRTUALENV_BG $BULLETTRAIN_VIRTUALENV_FG $BULLETTRAIN_VIRTUALENV_PREFIX" $(basename $virtualenv_path)"
elif which pyenv &> /dev/null; then
prompt_segment $BULLETTRAIN_VIRTUALENV_BG $BULLETTRAIN_VIRTUALENV_FG $BULLETTRAIN_VIRTUALENV_PREFIX" $(pyenv version | sed -e 's/ (set.*$//' | tr '\n' ' ' | sed 's/.$//')"
fi
}
# NVM: Node version manager
prompt_nvm() {
local nvm_prompt
if type nvm >/dev/null 2>&1; then
nvm_prompt=$(nvm current 2>/dev/null)
[[ "${nvm_prompt}x" == "x" ]] && return
elif type node >/dev/null 2>&1; then
nvm_prompt="$(node --version)"
else
return
fi
nvm_prompt=${nvm_prompt}
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
}
#AWS Profile
prompt_aws() {
local spaces=" "
if [[ -n "$AWS_PROFILE" ]]; then
prompt_segment $BULLETTRAIN_AWS_BG $BULLETTRAIN_AWS_FG $BULLETTRAIN_AWS_PREFIX$spaces$AWS_PROFILE
fi
}
# SCREEN Session
prompt_screen() {
local session_name="$STY"
if [[ "$session_name" != "" ]]; then
prompt_segment $BULLETTRAIN_SCREEN_BG $BULLETTRAIN_SCREEN_FG $BULLETTRAIN_SCREEN_PREFIX" $session_name"
fi
}
prompt_time() {
if [[ $BULLETTRAIN_TIME_12HR == true ]]; then
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%r}
else
prompt_segment $BULLETTRAIN_TIME_BG $BULLETTRAIN_TIME_FG %D{%T}
fi
}
# Status:
# - was there an error
# - am I root
# - are there background jobs?
prompt_status() {
local symbols
symbols=()
[[ $RETVAL -ne 0 && $BULLETTRAIN_STATUS_EXIT_SHOW != true ]] && symbols+="✘"
[[ $RETVAL -ne 0 && $BULLETTRAIN_STATUS_EXIT_SHOW == true ]] && symbols+="✘ $RETVAL"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡%f"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="⚙"
if [[ -n "$symbols" && $RETVAL -ne 0 ]]; then
prompt_segment $BULLETTRAIN_STATUS_ERROR_BG $BULLETTRAIN_STATUS_FG "$symbols"
elif [[ -n "$symbols" ]]; then
prompt_segment $BULLETTRAIN_STATUS_BG $BULLETTRAIN_STATUS_FG "$symbols"
fi
}
# Prompt Character
prompt_chars() {
local bt_prompt_chars="${BULLETTRAIN_PROMPT_CHAR}"
if [[ $BULLETTRAIN_PROMPT_ROOT == true ]]; then
bt_prompt_chars="%(!.%F{red}# .%F{green}${bt_prompt_chars}%f)"
fi
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == false ]]; then
bt_prompt_chars="${bt_prompt_chars}"
fi
echo -n "$bt_prompt_chars"
if [[ -n $BULLETTRAIN_PROMPT_CHAR ]]; then
echo -n " "
fi
}
# Prompt Line Separator
prompt_line_sep() {
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]]; then
# newline wont print without a non newline character, so add a zero-width space
echo -e '\n%{\u200B%}'
fi
}
# ------------------------------------------------------------------------------
# MAIN
# Entry point
# ------------------------------------------------------------------------------
build_prompt() {
RETVAL=$?
for segment in $BULLETTRAIN_PROMPT_ORDER
do
prompt_$segment
done
prompt_end
}
NEWLINE='
'
PROMPT=''
[[ $BULLETTRAIN_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$PROMPT$NEWLINE"
PROMPT="$PROMPT"'%{%f%b%k%}$(build_prompt)'
[[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]] && PROMPT="$PROMPT$NEWLINE"
PROMPT="$PROMPT"'%{${fg_bold[default]}%}'
[[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == false ]] && PROMPT="$PROMPT "
PROMPT="$PROMPT"'$(prompt_chars)%{$reset_color%}'
================================================
FILE: daily_stuff.sh
================================================
#!/bin/zsh
# updating macports
echo "::: Updating macports :::"
#sudo port -v selfupdate;
#sudo port -v upgrade outdated;
cd ~/git ;
echo ":::: Updated cloned git repositories ::::" ;
for i in * ;
do if [ -d $i ] ;
then echo "::: Directory $i :::" ;
cd $i ;
git smart-pull ;
git gc --auto;
sleep 2;
cd .. ;
fi
done ;
## updating brews
echo "::: Updating brews :::"
brew -v update && brew -v upgrade && brew -v cleanup && brew -v prune && brew -v doctor
##brew update && brew upgrade && brew cleanup && brew prune && brew doctor;
## emacs from trunk
##echo "::: Updating emacs from trunk :::"
# Emacs is now installed with brews, the previous process will update emacs
# brew install emacs --cocoa --use-git-head --HEAD
# cd ~/Documents/save_documents/Documents/temp/emacs/emacs ;
# git pull ;
# sh autogen.sh ;
# sleep 50 ;
# ./configure --with-ns --without-compress-info --without-imagemagick ;
# make ;
# make install
# ## doesn't work see the issue https://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00643.html
# ## make clean bootstrap install ;
# if [ -d "~/.Trash/Emacs.app" ] ;
# then echo "::removing unnused Emacs from trash::"
# rm -rfv ~/.Trash/Emacs.app;
# fi;
# mv /Applications/Emacs.app ~/.Trash/ ;
# mv ./nextstep/Emacs.app /Applications/ ;
echo "::: Compiling .elc's :::" ;
if [ -d ~/.emacs.d/ ] ;
then echo ":: Removing old compiled .el configs ::" ;
cd ~/.emacs.d/ && find . -type f -name "*.elc" -exec rm -fv {} \;
echo ":: Compiling lokaal .el configs ::" ;
cd ~/.emacs.d && ~/Applications/Emacs.app/Contents/MacOS/Emacs --batch --no-site-file --eval '(byte-recompile-directory "~/.emacs.d" 0 t)' ;
fi ;
echo "::: Done batchcompiling local elc's :::" ;
================================================
FILE: dk-tomorrow-night.icls
================================================
<scheme name="DK Tomorrow Night" version="142" parent_scheme="Default">
<colors>
<option name="ADDED_LINES_COLOR" value="b9ca4a" />
<option name="ANNOTATIONS_COLOR" value="b2c0c6" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="282a2e" />
<option name="CONSOLE_BACKGROUND_KEY" value="1c1c1c" />
<option name="DELETED_LINES_COLOR" value="e04164" />
<option name="FILESTATUS_ADDED" value="629755" />
<option name="FILESTATUS_DELETED" value="6c6c6c" />
<option name="FILESTATUS_IDEA_FILESTATUS_DELETED_FROM_FILE_SYSTEM" value="6c6c6c" />
<option name="FILESTATUS_IDEA_FILESTATUS_IGNORED" value="808080" />
<option name="FILESTATUS_IDEA_FILESTATUS_MERGED_WITH_BOTH_CONFLICTS" value="d5756c" />
<option name="FILESTATUS_IDEA_FILESTATUS_MERGED_WITH_CONFLICTS" value="d5756c" />
<option name="FILESTATUS_IDEA_FILESTATUS_MERGED_WITH_PROPERTY_CONFLICTS" value="d5756c" />
<option name="FILESTATUS_MERGED" value="9876aa" />
<option name="FILESTATUS_MODIFIED" value="6897bb" />
<option name="FILESTATUS_NOT_CHANGED_IMMEDIATE" value="6897bb" />
<option name="FILESTATUS_NOT_CHANGED_RECURSIVE" value="6897bb" />
<option name="FILESTATUS_RENAMED" value="a7700" />
<option name="FILESTATUS_UNKNOWN" value="d1675a" />
<option name="FILESTATUS_addedOutside" value="629755" />
<option name="FILESTATUS_changelistConflict" value="d5756c" />
<option name="FILESTATUS_modifiedOutside" value="6897bb" />
<option name="GUTTER_BACKGROUND" value="1c1c1c" />
<option name="HTML_TAG_TREE_LEVEL0" value="" />
<option name="INDENT_GUIDE" value="373737" />
<option name="METHOD_SEPARATORS_COLOR" value="5b5a4e" />
<option name="MODIFIED_LINES_COLOR" value="61afef" />
<option name="RECURSIVE_CALL_ATTRIBUTES" value="574300" />
<option name="RIGHT_MARGIN_COLOR" value="323232" />
<option name="SELECTED_INDENT_GUIDE" value="505050" />
<option name="SELECTED_TEARLINE_COLOR" value="cc9900" />
<option name="SELECTION_BACKGROUND" value="214283" />
<option name="SELECTION_FOREGROUND" value="" />
<option name="TEARLINE_COLOR" value="5b5a4e" />
<option name="VCS_ANNOTATIONS_COLOR_1" value="464c43" />
<option name="VCS_ANNOTATIONS_COLOR_2" value="444342" />
<option name="VCS_ANNOTATIONS_COLOR_3" value="41444a" />
<option name="VCS_ANNOTATIONS_COLOR_4" value="484248" />
<option name="VCS_ANNOTATIONS_COLOR_5" value="4c393a" />
<option name="WHITESPACES" value="505050" />
<option name="WHITESPACES_MODIFIED_LINES_COLOR" value="f2f2f2" />
</colors>
<attributes>
<option name="ANNOTATION_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="9cdcfe" />
</value>
</option>
<option name="BAD_CHARACTER">
<value>
<option name="FOREGROUND" value="ff0000" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="BASH.EXTERNAL_COMMAND">
<value>
<option name="FOREGROUND" value="c57633" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="BASH.INTERNAL_COMMAND">
<value>
<option name="FOREGROUND" value="e04164" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="BREAKPOINT_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="3a2323" />
</value>
</option>
<option name="Block comment">
<value>
<option name="FOREGROUND" value="74715e" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="CONSOLE_BLUE_BRIGHT_OUTPUT" baseAttributes="CONSOLE_BLUE_OUTPUT" />
<option name="CONSOLE_BLUE_OUTPUT">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="CONSOLE_CYAN_BRIGHT_OUTPUT" baseAttributes="CONSOLE_CYAN_OUTPUT" />
<option name="CONSOLE_CYAN_OUTPUT">
<value>
<option name="FOREGROUND" value="9cdcfe" />
</value>
</option>
<option name="CONSOLE_ERROR_OUTPUT">
<value>
<option name="FOREGROUND" value="e7c547" />
</value>
</option>
<option name="CONSOLE_GRAY_OUTPUT">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="CONSOLE_GREEN_BRIGHT_OUTPUT" baseAttributes="CONSOLE_GREEN_OUTPUT" />
<option name="CONSOLE_GREEN_OUTPUT">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="CONSOLE_MAGENTA_BRIGHT_OUTPUT" baseAttributes="CONSOLE_MAGENTA_OUTPUT" />
<option name="CONSOLE_MAGENTA_OUTPUT">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CONSOLE_NORMAL_OUTPUT">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="CONSOLE_RANGE_TO_EXECUTE">
<value />
</option>
<option name="CONSOLE_RED_BRIGHT_OUTPUT" baseAttributes="CONSOLE_RED_OUTPUT" />
<option name="CONSOLE_RED_OUTPUT">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="CONSOLE_SYSTEM_OUTPUT">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CONSOLE_USER_INPUT">
<value>
<option name="FOREGROUND" value="74715e" />
</value>
</option>
<option name="CONSOLE_YELLOW_BRIGHT_OUTPUT" baseAttributes="CONSOLE_YELLOW_OUTPUT" />
<option name="CONSOLE_YELLOW_OUTPUT">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="CONSTRUCTOR_DECLARATION_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="CSS.COLOR">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="CSS.FUNCTION">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="CSS.HASH">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="CTRL_CLICKABLE">
<value>
<option name="FOREGROUND" value="589df6" />
<option name="EFFECT_COLOR" value="589df6" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="CUSTOM_INVALID_STRING_ESCAPE_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="ff0000" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="CUSTOM_KEYWORD1_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CUSTOM_KEYWORD2_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CUSTOM_KEYWORD3_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CUSTOM_KEYWORD4_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="CUSTOM_LINE_COMMENT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="74715e" />
</value>
</option>
<option name="CUSTOM_MULTI_LINE_COMMENT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="74715e" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="CUSTOM_NUMBER_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="CUSTOM_STRING_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="e7c547" />
</value>
</option>
<option name="CUSTOM_VALID_STRING_ESCAPE_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="DEBUGGER_INLINED_VALUES">
<value>
<option name="FOREGROUND" value="3d8065" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="DEBUGGER_INLINED_VALUES_EXECUTION_LINE">
<value>
<option name="FOREGROUND" value="ffeb09" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="DEBUGGER_INLINED_VALUES_MODIFIED">
<value>
<option name="FOREGROUND" value="ca7e03" />
<option name="FONT_TYPE" value="2" />
</value>
</option>
<option name="DEFAULT_ATTRIBUTE">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="DEFAULT_BLOCK_COMMENT">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="DEFAULT_BRACES">
<value>
<option name="FOREGROUND" value="f9faf4" />
</value>
</option>
<option name="DEFAULT_BRACKETS">
<value>
<option name="FOREGROUND" value="f9faf4" />
</value>
</option>
<option name="DEFAULT_CLASS_NAME">
<value />
</option>
<option name="DEFAULT_CLASS_REFERENCE">
<value />
</option>
<option name="DEFAULT_COMMA">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="DEFAULT_CONSTANT">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="DEFAULT_DOC_COMMENT">
<value>
<option name="FOREGROUND" value="74715e" />
</value>
</option>
<option name="DEFAULT_DOC_COMMENT_TAG">
<value>
<option name="FOREGROUND" value="cfbfad" />
</value>
</option>
<option name="DEFAULT_DOC_COMMENT_TAG_VALUE">
<value>
<option name="FOREGROUND" value="9cdcfe" />
</value>
</option>
<option name="DEFAULT_DOC_MARKUP">
<value>
<option name="FOREGROUND" value="9cdcfe" />
</value>
</option>
<option name="DEFAULT_DOT">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="DEFAULT_ENTITY">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="DEFAULT_FUNCTION_CALL">
<value />
</option>
<option name="DEFAULT_FUNCTION_DECLARATION">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="DEFAULT_GLOBAL_VARIABLE">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="DEFAULT_IDENTIFIER">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="DEFAULT_INSTANCE_FIELD">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="DEFAULT_INSTANCE_METHOD">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="DEFAULT_INTERFACE_NAME">
<value />
</option>
<option name="DEFAULT_INVALID_STRING_ESCAPE">
<value>
<option name="FOREGROUND" value="ff0000" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="DEFAULT_KEYWORD">
<value>
<option name="FOREGROUND" value="c397d8" />
<option name="BACKGROUND" value="1c1c1c" />
</value>
</option>
<option name="DEFAULT_LABEL">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="DEFAULT_LINE_COMMENT">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="DEFAULT_LOCAL_VARIABLE">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="DEFAULT_METADATA">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="DEFAULT_NUMBER">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="DEFAULT_OPERATION_SIGN">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="DEFAULT_PARAMETER">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="DEFAULT_PARENTHS">
<value>
<option name="FOREGROUND" value="f9faf4" />
</value>
</option>
<option name="DEFAULT_PREDEFINED_SYMBOL" baseAttributes="DEFAULT_IDENTIFIER" />
<option name="DEFAULT_SEMICOLON">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="DEFAULT_STATIC_FIELD">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="DEFAULT_STATIC_METHOD">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="DEFAULT_STRING">
<value>
<option name="FOREGROUND" value="f0c674" />
</value>
</option>
<option name="DEFAULT_TAG">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="DEFAULT_TEMPLATE_LANGUAGE_COLOR">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="DEFAULT_VALID_STRING_ESCAPE">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="DELETED_TEXT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="272822" />
<option name="BACKGROUND" value="ffffff" />
</value>
</option>
<option name="DEPRECATED_ATTRIBUTES">
<value>
<option name="EFFECT_COLOR" value="c3c3c3" />
<option name="EFFECT_TYPE" value="3" />
</value>
</option>
<option name="DIFF_CONFLICT">
<value>
<option name="BACKGROUND" value="45302b" />
<option name="ERROR_STRIPE_COLOR" value="8f5247" />
</value>
</option>
<option name="DIFF_DELETED">
<value>
<option name="BACKGROUND" value="484a4a" />
<option name="ERROR_STRIPE_COLOR" value="656e76" />
</value>
</option>
<option name="DIFF_INSERTED">
<value>
<option name="BACKGROUND" value="294436" />
<option name="ERROR_STRIPE_COLOR" value="447152" />
</value>
</option>
<option name="DIFF_MODIFIED">
<value>
<option name="BACKGROUND" value="385570" />
<option name="ERROR_STRIPE_COLOR" value="43698d" />
</value>
</option>
<option name="DOC_COMMENT_TAG_VALUE">
<value>
<option name="FOREGROUND" value="9cdcfe" />
</value>
</option>
<option name="DUPLICATE_FROM_SERVER">
<value>
<option name="BACKGROUND" value="5e5339" />
</value>
</option>
<option name="ERRORS_ATTRIBUTES">
<value>
<option name="EFFECT_COLOR" value="bc3f3c" />
<option name="ERROR_STRIPE_COLOR" value="d62220" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="EXECUTIONPOINT_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="2d6099" />
</value>
</option>
<option name="FOLDED_TEXT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="8c8c8c" />
<option name="BACKGROUND" value="3a3a3a" />
</value>
</option>
<option name="FOLLOWED_HYPERLINK_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="287bde" />
<option name="EFFECT_COLOR" value="287bde" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="GENERIC_SERVER_ERROR_OR_WARNING">
<value>
<option name="EFFECT_COLOR" value="c27310" />
<option name="ERROR_STRIPE_COLOR" value="cc7110" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="HTTP_REQUEST_MULTIPART_BOUNDARY" baseAttributes="DEFAULT_DOC_COMMENT_TAG_VALUE" />
<option name="HTTP_REQUEST_PARAMETER_NAME">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="HTTP_REQUEST_PARAMETER_VALUE">
<value>
<option name="FOREGROUND" value="f0c674" />
</value>
</option>
<option name="HYPERLINK_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="287bde" />
<option name="EFFECT_COLOR" value="287bde" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="IDENTIFIER_UNDER_CARET_ATTRIBUTES">
<value>
<option name="EFFECT_COLOR" value="e5e7e8" />
<option name="ERROR_STRIPE_COLOR" value="96d22f" />
</value>
</option>
<option name="IGNORE.BRACKET">
<value>
<option name="FOREGROUND" value="c397d8" />
</value>
</option>
<option name="IGNORE.HEADER">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="IGNORE.NEGATION">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="IGNORE.SECTION">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="IGNORE.SYNTAX">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="IGNORE.UNUSED_ENTRY">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="IGNORE.VALUE">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="IMPLICIT_ANONYMOUS_CLASS_PARAMETER_ATTRIBUTES">
<value />
</option>
<option name="INFO_ATTRIBUTES">
<value>
<option name="EFFECT_COLOR" value="808080" />
<option name="ERROR_STRIPE_COLOR" value="808080" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="INJECTED_LANGUAGE_FRAGMENT">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="INLINE_PARAMETER_HINT">
<value>
<option name="FOREGROUND" value="929292" />
<option name="BACKGROUND" value="393939" />
</value>
</option>
<option name="INSTANCE_FIELD_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="JADE_FILE_PATH">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="JADE_FILTER_NAME" baseAttributes="DEFAULT_LABEL" />
<option name="JADE_JS_BLOCK" baseAttributes="DEFAULT_IDENTIFIER" />
<option name="JADE_STATEMENTS">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="JS.GLOBAL_FUNCTION" baseAttributes="DEFAULT_FUNCTION_DECLARATION" />
<option name="JS.GLOBAL_VARIABLE" baseAttributes="DEFAULT_GLOBAL_VARIABLE" />
<option name="JS.INSTANCE_MEMBER_FUNCTION" baseAttributes="DEFAULT_INSTANCE_METHOD" />
<option name="JS.LOCAL_VARIABLE" baseAttributes="DEFAULT_LOCAL_VARIABLE" />
<option name="JS.PARAMETER">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="JS.REGEXP" baseAttributes="DEFAULT_STRING" />
<option name="LOG_ERROR_OUTPUT">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="LOG_EXPIRED_ENTRY">
<value>
<option name="FOREGROUND" value="74715e" />
</value>
</option>
<option name="LOG_WARNING_OUTPUT">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="List/map to object conversion">
<value>
<option name="FOREGROUND" value="589df6" />
<option name="BACKGROUND" value="2b2b2b" />
<option name="FONT_TYPE" value="1" />
<option name="EFFECT_TYPE" value="5" />
</value>
</option>
<option name="MAKO.SUBSTITUTION">
<value>
<option name="FOREGROUND" value="f0c674" />
</value>
</option>
<option name="MARKDOWN_CODE_SPAN">
<value>
<option name="FOREGROUND" value="e04164" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_1">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_2">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_3">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_4">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_5">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MARKDOWN_HEADER_LEVEL_6">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="MATCHED_BRACE_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="595959" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="METHOD_DECLARATION_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="NOT_TOP_FRAME_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="243040" />
</value>
</option>
<option name="NOT_USED_ELEMENT_ATTRIBUTES">
<value>
<option name="ERROR_STRIPE_COLOR" value="808080" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="PARAMETER_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="PHP_PARAMETER">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="PHP_VAR" baseAttributes="DEFAULT_LOCAL_VARIABLE" />
<option name="PY.BUILTIN_NAME" baseAttributes="DEFAULT_PREDEFINED_SYMBOL" />
<option name="PY.CLASS_DEFINITION" baseAttributes="DEFAULT_CLASS_NAME" />
<option name="PY.DECORATOR" baseAttributes="DEFAULT_IDENTIFIER" />
<option name="PY.FUNC_DEFINITION" baseAttributes="DEFAULT_FUNCTION_DECLARATION" />
<option name="PY.KEYWORD_ARGUMENT" baseAttributes="DEFAULT_PARAMETER" />
<option name="PY.PREDEFINED_DEFINITION">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="PY.PREDEFINED_USAGE" baseAttributes="DEFAULT_PREDEFINED_SYMBOL" />
<option name="PY.SELF_PARAMETER" baseAttributes="DEFAULT_PARAMETER" />
<option name="PY.STRING.U" baseAttributes="DEFAULT_STRING" />
<option name="SASS_MIXIN">
<value>
<option name="FOREGROUND" value="b9ca4a" />
</value>
</option>
<option name="SEARCH_RESULT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="181818" />
<option name="BACKGROUND" value="e4e4e4" />
</value>
</option>
<option name="SPY-JS.EXCEPTION">
<value>
<option name="BACKGROUND" value="532b2e" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="SPY-JS.FUNCTION_SCOPE">
<value>
<option name="BACKGROUND" value="3a3a3a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="SPY-JS.PATH_LEVEL_ONE">
<value>
<option name="BACKGROUND" value="425f44" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="SPY-JS.PATH_LEVEL_TWO">
<value>
<option name="EFFECT_COLOR" value="a9b7c6" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="SPY-JS.PROGRAM_SCOPE">
<value>
<option name="BACKGROUND" value="3a3a3a" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="SPY-JS.VALUE_HINT">
<value>
<option name="EFFECT_COLOR" value="a9b7c6" />
</value>
</option>
<option name="STATIC_FIELD_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="61afef" />
</value>
</option>
<option name="STATIC_FINAL_FIELD_ATTRIBUTES" baseAttributes="STATIC_FIELD_ATTRIBUTES" />
<option name="STATIC_METHOD_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="cfbfad" />
</value>
</option>
<option name="Static property reference ID">
<value>
<option name="FOREGROUND" value="d0d0ff" />
<option name="FONT_TYPE" value="2" />
<option name="EFFECT_COLOR" value="ffffff" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="TEMPLATE_VARIABLE_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="ffffff" />
</value>
</option>
<option name="TEXT">
<value>
<option name="FOREGROUND" value="ffffff" />
<option name="BACKGROUND" value="1c1c1c" />
</value>
</option>
<option name="TEXT_SEARCH_RESULT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="181818" />
<option name="BACKGROUND" value="e4e4e4" />
</value>
</option>
<option name="TODO_DEFAULT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="0" />
<option name="BACKGROUND" value="fef629" />
<option name="ERROR_STRIPE_COLOR" value="287bde" />
</value>
</option>
<option name="TYPE_PARAMETER_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="e78c45" />
</value>
</option>
<option name="TYPO">
<value>
<option name="EFFECT_COLOR" value="867f27" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="UNMATCHED_BRACE_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="d1243b" />
</value>
</option>
<option name="Unresolved reference access">
<value>
<option name="FOREGROUND" value="bbbbbb" />
<option name="BACKGROUND" value="2b2b2b" />
<option name="EFFECT_COLOR" value="808080" />
<option name="EFFECT_TYPE" value="1" />
</value>
</option>
<option name="WARNING_ATTRIBUTES">
<value>
<option name="BACKGROUND" value="52503a" />
<option name="ERROR_STRIPE_COLOR" value="cc7110" />
<option name="EFFECT_TYPE" value="2" />
</value>
</option>
<option name="WRITE_IDENTIFIER_UNDER_CARET_ATTRIBUTES">
<value>
<option name="EFFECT_COLOR" value="e5e7e8" />
<option name="ERROR_STRIPE_COLOR" value="96d22f" />
</value>
</option>
<option name="WRITE_SEARCH_RESULT_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="181818" />
<option name="BACKGROUND" value="e4e4e4" />
</value>
</option>
<option name="WRONG_REFERENCES_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="bc3f3c" />
</value>
</option>
<option name="XML_PROLOGUE" baseAttributes="TEXT" />
</attributes>
</scheme>
================================================
FILE: fira.sh
================================================
#!/bin/bash
## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html
cd /tmp
# install unzip just in case the user doesn't already have it.
if [[ `uname` = Linux ]]; then
sudo apt-get install unzip -y
wget "https://carrois.com/downloads/Fira/Fira_Sans_4_2.zip"
wget "https://carrois.com/downloads/Fira/Fira_Code_3_2.zip"
wget "https://carrois.com/downloads/Fira/Fira_Mono_3_2.zip"
unzip Fira_Sans_4_2.zip
unzip Fira_Mono_3_2.zip
unzip Fira_Code_3_2.zip
sudo mkdir -p /usr/share/fonts/truetype/Fira
sudo mkdir -p /usr/share/fonts/opentype/Fira
sudo cp /tmp/Fira*/**/*.ttf /usr/share/fonts/truetype/Fira/
sudo cp /tmp/Fira*/**/*.otf /usr/share/fonts/opentype/Fira/
sudo fc-cache -fv
else
wget https://github.com/mozilla/Fira/archive/4.202.zip
unzip 4.202.zip
font_dir="$HOME/Library/Fonts"
mkdir -p $font_dir
cp Fira-4.202/otf/* $font_dir/
fi
================================================
FILE: gnome-classic.css
================================================
/* Use the gnome-shell theme, but with light colors */
/* This stylesheet is generated, DO NOT EDIT */
/* Copyright 2009, 2015 Red Hat, Inc.
*
* Portions adapted from Mx's data/style/default.css
* Copyright 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
/* GLOBALS */
stage {
font-family: Noto Sans CJK KR Black, Sans-Serif;
font-size: 12pt;
color: #2e3436; }
/* WIDGETS */
/* Buttons */
.button {
border-radius: 3px;
border-width: 1px;
padding: 4px 32px;
color: #eeeeec;
background-color: #2e3436;
border-color: rgba(0, 0, 0, 0.7);
box-shadow: inset 0 1px #454f52;
text-shadow: 0 1px black;
icon-shadow: 0 1px black; }
.button:focus {
color: #eeeeec;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
box-shadow: inset 0px 0px 0px 1px #4a90d9; }
.button:insensitive {
color: #8e9192;
border-color: rgba(0, 0, 0, 0.7);
background-color: rgba(65, 71, 72, 0.7);
box-shadow: none;
text-shadow: none;
icon-shadow: none; }
.button:active {
color: white;
border-color: rgba(0, 0, 0, 0.7);
background-color: #222728;
box-shadow: inset 0 0 black;
text-shadow: none;
icon-shadow: none; }
.modal-dialog-linked-button {
border-right-width: 1px;
color: #eeeeec;
background-color: #2e3436;
border-color: rgba(0, 0, 0, 0.7);
box-shadow: inset 0 1px #454f52;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
padding: 12px; }
.modal-dialog-linked-button:insensitive {
color: #8e9192;
border-color: rgba(0, 0, 0, 0.7);
background-color: rgba(65, 71, 72, 0.7);
box-shadow: none;
text-shadow: none;
icon-shadow: none; }
.modal-dialog-linked-button:active {
color: white;
border-color: rgba(0, 0, 0, 0.7);
background-color: #222728;
box-shadow: inset 0 0 black;
text-shadow: none;
icon-shadow: none; }
.modal-dialog-linked-button:focus {
color: #eeeeec;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
box-shadow: inset 0px 0px 0px 1px #4a90d9; }
.modal-dialog-linked-button:first-child {
border-radius: 0px 0px 0px 6px; }
.modal-dialog-linked-button:last-child {
border-right-width: 0px;
border-radius: 0px 0px 6px 0px; }
.modal-dialog-linked-button:first-child:last-child {
border-right-width: 0px;
border-radius: 0px 0px 6px 6px; }
/* Entries */
StEntry {
border-radius: 3px;
padding: 4px;
border-width: 1px;
color: #2e3436;
background-color: #ffffff;
border-color: #a1a1a1;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
selection-background-color: #4a90d9;
selected-color: #ffffff; }
StEntry:focus {
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
border-color: rgba(0, 0, 0, 0.5); }
StEntry:insensitive {
color: #8e9192;
border-color: #f4f4f4;
box-shadow: none; }
StEntry StIcon.capslock-warning {
icon-size: 16px;
warning-color: #f57900;
padding: 0 4px; }
/* Scrollbars */
StScrollView.vfade {
-st-vfade-offset: 68px; }
StScrollView.hfade {
-st-hfade-offset: 68px; }
StScrollBar {
padding: 0; }
StScrollView StScrollBar {
min-width: 14px;
min-height: 14px; }
StScrollBar StBin#trough {
border-radius: 0;
background-color: transparent; }
StScrollBar StButton#vhandle, StScrollBar StButton#hhandle {
border-radius: 8px;
background-color: #7a7e7f;
margin: 3px; }
StScrollBar StButton#vhandle:hover, StScrollBar StButton#hhandle:hover {
background-color: #54595b; }
StScrollBar StButton#vhandle:active, StScrollBar StButton#hhandle:active {
background-color: #4a90d9; }
/* Slider */
.slider {
height: 1em;
-slider-height: 0.3em;
-slider-background-color: #f4f4f4;
-slider-border-color: #a1a1a1;
-slider-active-background-color: #4a90d9;
-slider-active-border-color: #2a76c6;
-slider-border-width: 1px;
-slider-handle-radius: 6px; }
/* Check Boxes */
.check-box StBoxLayout {
spacing: .8em; }
.check-box StBin {
width: 24px;
height: 22px;
background-image: url("resource:///org/gnome/shell/theme/checkbox-off.svg"); }
.check-box:focus StBin {
background-image: url("resource:///org/gnome/shell/theme/checkbox-off-focused.svg"); }
.check-box:checked StBin {
background-image: url("resource:///org/gnome/shell/theme/checkbox.svg"); }
.check-box:focus:checked StBin {
background-image: url("resource:///org/gnome/shell/theme/checkbox-focused.svg"); }
/* Switches */
.toggle-switch {
width: 65px;
height: 22px;
background-size: contain; }
.toggle-switch-us {
background-image: url("resource:///org/gnome/shell/theme/toggle-off-us.svg"); }
.toggle-switch-us:checked {
background-image: url("resource:///org/gnome/shell/theme/toggle-on-us.svg"); }
.toggle-switch-intl {
background-image: url("resource:///org/gnome/shell/theme/toggle-off-intl.svg"); }
.toggle-switch-intl:checked {
background-image: url("resource:///org/gnome/shell/theme/toggle-on-intl.svg"); }
/* links */
.shell-link {
color: #2a76c6; }
.shell-link:hover {
color: #4a90d9; }
/* Modal Dialogs */
.headline {
font-size: 110%; }
.lightbox {
background-color: black; }
.flashspot {
background-color: white; }
.modal-dialog {
border-radius: 9px;
color: #eeeeec;
background-color: rgba(23, 25, 26, 0.95);
border: 3px solid rgba(238, 238, 236, 0.5); }
.modal-dialog .modal-dialog-content-box {
padding: 24px; }
.modal-dialog .run-dialog-entry {
width: 20em;
margin-bottom: 6px; }
.modal-dialog .run-dialog-error-box {
padding-top: 16px;
spacing: 6px; }
.modal-dialog .run-dialog-button-box {
padding-top: 1em; }
.modal-dialog .run-dialog-label {
font-size: 12pt;
font-weight: bold;
color: #d6d6d1;
padding-bottom: .4em; }
.show-processes-dialog-subject,
.mount-question-dialog-subject,
.end-session-dialog-subject {
font-size: 14pt; }
/* End Session Dialog */
.end-session-dialog {
spacing: 42px;
border: 3px solid rgba(238, 238, 236, 0.2); }
.end-session-dialog-list {
padding-top: 20px; }
.end-session-dialog-layout {
padding-left: 17px; }
.end-session-dialog-layout:rtl {
padding-right: 17px; }
.end-session-dialog-description {
width: 28em;
padding-bottom: 10px; }
.end-session-dialog-description:rtl {
text-align: right; }
.end-session-dialog-warning {
width: 28em;
color: #f57900;
padding-top: 6px; }
.end-session-dialog-warning:rtl {
text-align: right; }
.end-session-dialog-logout-icon {
border-radius: 5px;
width: 48px;
height: 48px;
background-size: contain; }
.end-session-dialog-shutdown-icon {
color: #2e3436;
width: 48px;
height: 48px; }
.end-session-dialog-inhibitor-layout {
spacing: 16px;
max-height: 200px;
padding-right: 65px;
padding-left: 65px; }
.end-session-dialog-session-list,
.end-session-dialog-app-list {
spacing: 1em; }
.end-session-dialog-list-header {
font-weight: bold; }
.end-session-dialog-list-header:rtl {
text-align: right; }
.end-session-dialog-app-list-item,
.end-session-dialog-session-list-item {
spacing: 1em; }
.end-session-dialog-app-list-item-name,
.end-session-dialog-session-list-item-name {
font-weight: bold; }
.end-session-dialog-app-list-item-description {
color: #222728;
font-size: 10pt; }
/* ShellMountOperation Dialogs */
.shell-mount-operation-icon {
icon-size: 48px; }
.show-processes-dialog,
.mount-question-dialog {
spacing: 24px; }
.show-processes-dialog-subject,
.mount-question-dialog-subject {
padding-top: 10px;
padding-left: 17px;
padding-bottom: 6px; }
.mount-question-dialog-subject {
max-width: 500px; }
.show-processes-dialog-subject:rtl,
.mount-question-dialog-subject:rtl {
padding-left: 0px;
padding-right: 17px; }
.show-processes-dialog-description,
.mount-question-dialog-description {
padding-left: 17px;
width: 28em; }
.show-processes-dialog-description:rtl,
.mount-question-dialog-description:rtl {
padding-right: 17px; }
.show-processes-dialog-app-list {
max-height: 200px;
padding-top: 24px;
padding-left: 49px;
padding-right: 32px; }
.show-processes-dialog-app-list:rtl {
padding-right: 49px;
padding-left: 32px; }
.show-processes-dialog-app-list-item {
color: #17191a; }
.show-processes-dialog-app-list-item:hover {
color: #2e3436; }
.show-processes-dialog-app-list-item:ltr {
padding-right: 1em; }
.show-processes-dialog-app-list-item:rtl {
padding-left: 1em; }
.show-processes-dialog-app-list-item-icon:ltr {
padding-right: 17px; }
.show-processes-dialog-app-list-item-icon:rtl {
padding-left: 17px; }
.show-processes-dialog-app-list-item-name {
font-size: 10pt; }
/* Password or Authentication Dialog */
.prompt-dialog {
width: 500px;
border: 3px solid rgba(238, 238, 236, 0.2); }
.prompt-dialog-main-layout {
spacing: 24px;
padding: 10px; }
.prompt-dialog-message-layout {
spacing: 16px; }
.prompt-dialog-headline {
font-weight: bold;
color: #b2b2a9; }
.prompt-dialog-description:rtl {
text-align: right; }
.prompt-dialog-password-box {
spacing: 1em;
padding-bottom: 1em; }
.prompt-dialog-error-label {
font-size: 10pt;
color: #cc0000;
padding-bottom: 8px; }
.prompt-dialog-info-label {
font-size: 10pt;
padding-bottom: 8px; }
.hidden {
color: transparent; }
.prompt-dialog-null-label {
font-size: 10pt;
padding-bottom: 8px; }
/* Polkit Dialog */
.polkit-dialog-user-layout {
padding-left: 10px;
spacing: 10px; }
.polkit-dialog-user-layout:rtl {
padding-left: 0px;
padding-right: 10px; }
.polkit-dialog-user-root-label {
color: #f57900; }
.polkit-dialog-user-icon {
border-radius: 5px;
background-size: contain;
width: 48px;
height: 48px; }
/* Network Agent Dialog */
.network-dialog-secret-table {
spacing-rows: 15px;
spacing-columns: 1em; }
.keyring-dialog-control-table {
spacing-rows: 15px;
spacing-columns: 1em; }
/* Popvers/Menus */
.popup-menu {
min-width: 200px; }
.popup-menu .popup-sub-menu {
background-color: #e8e8e8;
box-shadow: inset 0 -1px 0px #adadad; }
.popup-menu .popup-menu-content {
padding: 1em 0em; }
.popup-menu .popup-menu-item {
spacing: 12px; }
.popup-menu .popup-menu-item:ltr {
padding: .4em 1.75em .4em 0em; }
.popup-menu .popup-menu-item:rtl {
padding: .4em 0em .4em 1.75em; }
.popup-menu .popup-menu-item:checked {
background-color: #e8e8e8;
box-shadow: inset 0 1px 0px #adadad;
font-weight: bold; }
.popup-menu .popup-menu-item.selected {
background-color: rgba(46, 52, 54, 0.1);
color: #2e3436; }
.popup-menu .popup-menu-item:active {
background-color: #4a90d9;
color: #ffffff; }
.popup-menu .popup-menu-item:insensitive {
color: rgba(46, 52, 54, 0.5); }
.popup-menu .popup-inactive-menu-item {
color: #2e3436; }
.popup-menu .popup-inactive-menu-item:insensitive {
color: rgba(46, 52, 54, 0.5); }
.popup-menu.panel-menu {
-boxpointer-gap: 4px;
margin-bottom: 1.75em; }
.popup-menu-ornament {
text-align: right;
width: 1.2em; }
.popup-menu-boxpointer,
.candidate-popup-boxpointer {
-arrow-border-radius: 3px;
-arrow-background-color: #ededed;
-arrow-border-width: 1px;
-arrow-border-color: #a1a1a1;
-arrow-base: 24px;
-arrow-rise: 11px;
-arrow-box-shadow: 0 1px 3px black; }
.popup-separator-menu-item {
height: 1px;
margin: 6px 64px;
background-color: transparent;
border-color: #bababa;
border-bottom-width: 1px;
border-bottom-style: solid; }
.background-menu {
-boxpointer-gap: 4px;
-arrow-rise: 0px; }
/* fallback menu
- odd thing for styling App menu when apparently not running under shell. Light Adwaita styled
app menu inside the main app window itself rather than the top bar
*/
/* OSD */
.osd-window {
text-align: center;
font-weight: bold;
spacing: 1em;
margin: 32px;
min-width: 64px;
min-height: 64px; }
.osd-window .osd-monitor-label {
font-size: 3em; }
.osd-window .level {
height: 0.6em;
border-radius: 0.3em;
background-color: rgba(11, 12, 13, 0.5);
color: #eeeeec; }
/* App Switcher */
.switcher-popup {
padding: 8px;
spacing: 16px; }
.switcher-list-item-container {
spacing: 8px; }
.switcher-list .item-box {
padding: 8px;
border-radius: 4px; }
.switcher-list .item-box:outlined {
padding: 6px;
border: 2px solid #878787; }
.switcher-list .item-box:selected {
background-color: #4a90d9;
color: #ffffff; }
.switcher-list .thumbnail-box {
padding: 2px;
spacing: 4px; }
.switcher-list .thumbnail {
width: 256px; }
.switcher-list .separator {
width: 1px;
background: #a1a1a1; }
.switcher-arrow {
border-color: transparent;
color: rgba(46, 52, 54, 0.8); }
.switcher-arrow:highlighted {
color: #2e3436; }
.input-source-switcher-symbol {
font-size: 34pt;
width: 96px;
height: 96px; }
/* Workspace Switcher */
.workspace-switcher-group {
padding: 12px; }
.workspace-switcher {
background: transparent;
border: 0px;
border-radius: 0px;
padding: 0px;
spacing: 8px; }
.ws-switcher-active-up, .ws-switcher-active-down {
height: 50px;
background-color: #4a90d9;
color: #ffffff;
background-size: 32px;
border-radius: 8px; }
.ws-switcher-box {
height: 50px;
border: 1px solid rgba(238, 238, 236, 0.1);
background: transparent;
border-radius: 8px; }
.osd-window,
.resize-popup,
.switcher-list, .workspace-switcher-container {
color: #eeeeec;
background-color: #2e3436;
border: 1px solid rgba(238, 238, 236, 0.2);
border-radius: 12px;
padding: 12px; }
/* Tiled window previews */
.tile-preview {
background-color: rgba(74, 144, 217, 0.5);
border: 1px solid #4a90d9; }
.tile-preview-left.on-primary {
border-radius: 6px 6px 0 0; }
.tile-preview-right.on-primary {
border-radius: 0 6px 0 0; }
.tile-preview-left.tile-preview-right.on-primary {
border-radius: 6px 6px 0 0; }
/* TOP BAR */
#panel {
background-color: black;
font-weight: bold;
height: 1.86em; }
#panel.unlock-screen, #panel.login-screen, #panel.lock-screen {
background-color: transparent; }
#panel #panelLeft, #panel #panelCenter {
spacing: 4px; }
#panel .panel-corner {
-panel-corner-radius: 6px;
-panel-corner-background-color: black;
-panel-corner-border-width: 2px;
-panel-corner-border-color: transparent; }
#panel .panel-corner:active, #panel .panel-corner:overview, #panel .panel-corner:focus {
-panel-corner-border-color: #5f9ddd; }
#panel .panel-corner.lock-screen, #panel .panel-corner.login-screen, #panel .panel-corner.unlock-screen {
-panel-corner-radius: 0;
-panel-corner-background-color: transparent;
-panel-corner-border-color: transparent; }
#panel .panel-button {
-natural-hpadding: 12px;
-minimum-hpadding: 6px;
font-weight: bold;
color: #ccc;
transition-duration: 100ms; }
#panel .panel-button .app-menu-icon {
-st-icon-style: symbolic;
margin-left: 4px;
margin-right: 4px; }
#panel .panel-button:hover {
color: #454f52; }
#panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked {
background-color: rgba(0, 0, 0, 0.01);
box-shadow: inset 0 -2px 0px #5f9ddd;
color: #454f52; }
#panel .panel-button:active > .system-status-icon, #panel .panel-button:overview > .system-status-icon, #panel .panel-button:focus > .system-status-icon, #panel .panel-button:checked > .system-status-icon {
icon-shadow: black 0 2px 2px; }
#panel .panel-button .system-status-icon {
icon-size: 1.09em;
padding: 0 5px; }
.unlock-screen #panel .panel-button, .login-screen #panel .panel-button, .lock-screen #panel .panel-button {
color: #454f52; }
.unlock-screen #panel .panel-button:focus, .unlock-screen #panel .panel-button:hover, .unlock-screen #panel .panel-button:active, .login-screen #panel .panel-button:focus, .login-screen #panel .panel-button:hover, .login-screen #panel .panel-button:active, .lock-screen #panel .panel-button:focus, .lock-screen #panel .panel-button:hover, .lock-screen #panel .panel-button:active {
color: #454f52; }
#panel .panel-status-indicators-box,
#panel .panel-status-menu-box {
spacing: 2px; }
#panel .screencast-indicator {
color: #f57900; }
#calendarArea {
padding: 0.75em 1.0em; }
.calendar {
margin-bottom: 1em; }
.calendar,
.datemenu-today-button,
.datemenu-displays-box,
.message-list-sections {
margin: 0 1.5em; }
.datemenu-calendar-column {
spacing: 0.5em; }
.datemenu-displays-section {
padding-bottom: 3em; }
.datemenu-today-button,
.world-clocks-button,
.message-list-section-title {
border-radius: 4px;
padding: .4em; }
.message-list-section-list:ltr {
padding-left: .4em; }
.message-list-section-list:rtl {
padding-right: .4em; }
.datemenu-today-button:hover, .datemenu-today-button:focus,
.world-clocks-button:hover,
.world-clocks-button:focus,
.message-list-section-title:hover,
.message-list-section-title:focus {
background-color: #fafafa; }
.datemenu-today-button:active,
.world-clocks-button:active,
.message-list-section-title:active {
color: white;
background-color: #4a90d9; }
.datemenu-today-button .date-label {
font-size: 1.5em; }
.world-clocks-header,
.message-list-section-title {
color: black;
font-weight: bold; }
.world-clocks-grid {
spacing-rows: 0.4em; }
.calendar-month-label {
color: #222728;
font-weight: bold;
padding: 8px 0; }
.pager-button {
color: white;
background-color: transparent;
width: 32px;
border-radius: 4px; }
.pager-button:hover, .pager-button:focus {
background-color: rgba(46, 52, 54, 0.05); }
.pager-button:active {
background-color: rgba(237, 237, 237, 0.05); }
.calendar-change-month-back {
background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-left.svg"); }
.calendar-change-month-back:rtl {
background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-right.svg"); }
.calendar-change-month-forward {
background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-right.svg"); }
.calendar-change-month-forward:rtl {
background-image: url("resource:///org/gnome/shell/theme/calendar-arrow-left.svg"); }
.calendar-day-base {
font-size: 80%;
text-align: center;
width: 2.4em;
height: 2.4em;
padding: 0.1em;
margin: 2px;
border-radius: 1.4em; }
.calendar-day-base:hover, .calendar-day-base:focus {
background-color: #fafafa; }
.calendar-day-base:active {
color: white;
background-color: #4a90d9;
border-color: transparent; }
.calendar-day-base.calendar-day-heading {
color: black;
margin-top: 1em;
font-size: 70%; }
.calendar-day {
border-width: 0; }
.calendar-day-top {
border-top-width: 1px; }
.calendar-day-left {
border-left-width: 1px; }
.calendar-nonwork-day {
color: #8e9192; }
.calendar-today {
font-weight: bold;
border: 1px solid rgba(161, 161, 161, 0.5); }
.calendar-day-with-events {
color: #454f52;
font-weight: bold;
background-image: url("resource:///org/gnome/shell/theme/calendar-today.svg"); }
.calendar-other-month-day {
color: rgba(46, 52, 54, 0.15);
opacity: 0.5; }
/* Message list */
.message-list {
width: 420px; }
.message-list-sections {
spacing: 1.5em; }
.message-list-section,
.message-list-section-list {
spacing: 0.7em; }
.message-list-section-title-box {
spacing: 0.4em; }
.message-list-section-close > StIcon {
icon-size: 16px;
border-radius: 8px;
color: #ededed;
background-color: black; }
/* FIXME: how do you do this in sass? */
.message-list-section-close:hover > StIcon,
.message-list-section-close:focus > StIcon {
background-color: black; }
.message {
background-color: #fafafa;
border-radius: 3px; }
.message:hover, .message:focus {
background-color: white; }
.message-icon-bin {
padding: 8px 0px 8px 8px; }
.message-icon-bin:rtl {
padding: 8px 8px 8px 0px; }
.message-icon-bin > StIcon {
icon-size: 32px; }
.message-secondary-bin:ltr {
padding-left: 8px; }
.message-secondary-bin:rtl {
padding-right: 8px; }
.message-secondary-bin {
color: black; }
.message-secondary-bin > StIcon {
icon-size: 16px; }
.message-title {
font-weight: bold;
font-size: 1.1em; }
.message-content {
padding: 8px;
font-size: .9em; }
.system-switch-user-submenu-icon.user-icon {
icon-size: 20px;
padding: 0 2px; }
.system-switch-user-submenu-icon.default-icon {
icon-size: 16px;
padding: 0 4px; }
#appMenu {
spinner-image: url("resource:///org/gnome/shell/theme/process-working.svg");
spacing: 4px; }
#appMenu .label-shadow {
color: transparent; }
.aggregate-menu {
width: 280px; }
.aggregate-menu .popup-menu-icon {
padding: 0 4px; }
.system-menu-action {
color: #2e3436;
border-radius: 32px;
/* wish we could do 50% */
padding: 13px;
border: 1px solid #adadad; }
.system-menu-action:hover, .system-menu-action:focus {
background-color: rgba(46, 52, 54, 0.1);
color: #2e3436;
border: none;
padding: 14px; }
.system-menu-action:active {
background-color: #4a90d9;
color: #ffffff; }
.system-menu-action > StIcon {
icon-size: 16px; }
.ripple-box {
width: 52px;
height: 52px;
background-image: url("resource:///org/gnome/shell/theme/corner-ripple-ltr.png");
background-size: contain; }
.ripple-box:rtl {
background-image: url("resource:///org/gnome/shell/theme/corner-ripple-rtl.png"); }
.popup-menu-arrow {
width: 16px;
height: 16px; }
.popup-menu-icon {
icon-size: 1.09em; }
.window-close {
background-image: url("resource:///org/gnome/shell/theme/close-window.svg");
background-size: 32px;
height: 32px;
width: 32px; }
.window-close {
-shell-close-overlap: 16px; }
.window-close:rtl {
-st-background-image-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); }
/* NETWORK DIALOGS */
.nm-dialog {
max-height: 500px;
min-height: 450px;
min-width: 470px; }
.nm-dialog-content {
spacing: 20px;
padding: 24px; }
.nm-dialog-header-hbox {
spacing: 10px; }
.nm-dialog-airplane-box {
spacing: 12px; }
.nm-dialog-airplane-headline {
font-weight: bold;
text-align: center; }
.nm-dialog-airplane-text {
color: #2e3436; }
.nm-dialog-header-icon {
icon-size: 32px; }
.nm-dialog-scroll-view {
border: 2px solid #a1a1a1; }
.nm-dialog-header {
font-weight: bold; }
.nm-dialog-item {
font-size: 110%;
border-bottom: 1px solid #a1a1a1;
padding: 12px;
spacing: 20px; }
.nm-dialog-item:selected {
background-color: #4a90d9;
color: #ffffff; }
.nm-dialog-icons {
spacing: .5em; }
.nm-dialog-icon {
icon-size: 16px; }
.no-networks-label {
color: #999999; }
.no-networks-box {
spacing: 12px; }
/* OVERVIEW */
#overview {
spacing: 24px; }
.overview-controls {
padding-bottom: 32px; }
.window-picker {
-horizontal-spacing: 32px;
-vertical-spacing: 32px;
padding-left: 32px;
padding-right: 32px;
padding-bottom: 48px; }
.window-picker.external-monitor {
padding: 32px; }
.window-clone-border {
border: 4px solid #4a90d9;
border-radius: 4px;
box-shadow: inset 0px 0px 0px 1px #4a90d9; }
.window-caption {
spacing: 25px;
color: #eeeeec;
background-color: rgba(46, 52, 54, 0.7);
border-radius: 8px;
padding: 4px 12px;
-shell-caption-spacing: 12px; }
.window-caption:hover {
background-color: #4a90d9;
color: #ffffff; }
.search-entry {
width: 320px;
padding: 7px 9px;
border-radius: 6px; }
.search-entry:focus {
padding: 6px 8px;
border-width: 2px; }
.search-entry .search-entry-icon {
icon-size: 1em;
padding: 0 4px;
color: rgba(46, 52, 54, 0.7); }
.search-entry:hover .search-entry-icon, .search-entry:focus .search-entry-icon {
color: #2e3436; }
#searchResultsBin {
max-width: 1000px; }
#searchResultsContent {
padding-left: 20px;
padding-right: 20px;
spacing: 16px; }
.search-section {
spacing: 16px; }
.search-section-content {
spacing: 32px; }
.list-search-results {
spacing: 3px; }
.search-section-separator {
-gradient-height: 1px;
-gradient-start: rgba(255, 255, 255, 0);
-gradient-end: rgba(255, 255, 255, 0.1);
-margin-horizontal: 1.5em;
height: 1px; }
.list-search-result-content {
spacing: 12px;
padding: 12px; }
.list-search-result-title {
font-size: 1.5em;
color: #e2e2df; }
.list-search-result-description {
color: #cacac4; }
.search-provider-icon {
padding: 15px; }
.search-provider-icon-more {
width: 16px;
height: 16px;
background-image: url("resource:///org/gnome/shell/theme/more-results.svg"); }
/* DASHBOARD */
#dash {
font-size: 9pt;
color: #eeeeec;
background-color: #2e3436;
padding: 4px 0;
border: 1px solid rgba(128, 128, 128, 0.4);
border-left: 0px;
border-radius: 0px 9px 9px 0px; }
#dash:rtl {
border-radius: 9px 0 0 9px; }
#dash .placeholder {
background-image: url("resource:///org/gnome/shell/theme/dash-placeholder.svg");
background-size: contain;
height: 24px; }
#dash .empty-dash-drop-target {
width: 24px;
height: 24px; }
.dash-item-container > StWidget {
padding: 4px 8px; }
.dash-label {
border-radius: 7px;
padding: 4px 12px;
color: #eeeeec;
background-color: rgba(46, 52, 54, 0.7);
text-align: center;
-x-offset: 8px; }
/* App Vault/Grid */
.icon-grid {
spacing: 30px;
-shell-grid-horizontal-item-size: 136px;
-shell-grid-vertical-item-size: 136px; }
.icon-grid .overview-icon {
icon-size: 96px; }
.app-view-controls {
padding-bottom: 32px; }
.app-view-control {
padding: 4px 32px; }
.app-view-control:checked {
color: white;
border-color: rgba(0, 0, 0, 0.7);
background-color: #222728;
box-shadow: inset 0 0 black;
text-shadow: none;
icon-shadow: none; }
.app-view-control:first-child {
border-right-width: 0;
border-radius: 3px 0 0 3px; }
.app-view-control:last-child {
border-radius: 0 3px 3px 0; }
.search-provider-icon:active, .search-provider-icon:checked,
.list-search-result:active,
.list-search-result:checked {
background-color: rgba(23, 25, 26, 0.9); }
.search-provider-icon:focus, .search-provider-icon:selected, .search-provider-icon:hover,
.list-search-result:focus,
.list-search-result:selected,
.list-search-result:hover {
background-color: rgba(238, 238, 236, 0.1);
transition-duration: 200ms; }
.app-well-app:active .overview-icon, .app-well-app:checked .overview-icon,
.app-well-app.app-folder:active .overview-icon,
.app-well-app.app-folder:checked .overview-icon,
.show-apps:active .overview-icon,
.show-apps:checked .overview-icon,
.grid-search-result:active .overview-icon,
.grid-search-result:checked .overview-icon {
background-color: rgba(23, 25, 26, 0.9);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7); }
.app-well-app:hover .overview-icon, .app-well-app:focus .overview-icon, .app-well-app:selected .overview-icon,
.app-well-app.app-folder:hover .overview-icon,
.app-well-app.app-folder:focus .overview-icon,
.app-well-app.app-folder:selected .overview-icon,
.show-apps:hover .overview-icon,
.show-apps:focus .overview-icon,
.show-apps:selected .overview-icon,
.grid-search-result:hover .overview-icon,
.grid-search-result:focus .overview-icon,
.grid-search-result:selected .overview-icon {
background-color: rgba(238, 238, 236, 0.1);
transition-duration: 0ms;
border-image: none;
background-image: none; }
.app-well-app-running-dot {
width: 10px;
height: 3px;
background-color: #4a90d9;
margin-bottom: 2px; }
.search-provider-icon,
.list-search-result, .app-well-app .overview-icon,
.app-well-app.app-folder .overview-icon,
.show-apps .overview-icon,
.grid-search-result .overview-icon {
color: #eeeeec;
border-radius: 4px;
padding: 6px;
border: 1px solid transparent;
transition-duration: 100ms;
text-align: center; }
.app-well-app.app-folder > .overview-icon {
background-color: rgba(46, 52, 54, 0.4); }
.show-apps:checked .show-apps-icon,
.show-apps:focus .show-apps-icon {
color: white;
transition-duration: 100ms; }
.app-folder-popup {
-arrow-border-radius: 8px;
-arrow-background-color: rgba(46, 52, 54, 0.3);
-arrow-base: 24px;
-arrow-rise: 11px; }
.app-folder-popup-bin {
padding: 5px; }
.app-folder-icon {
padding: 5px;
spacing-rows: 5px;
spacing-columns: 5px; }
.page-indicator {
padding: 15px 20px; }
.page-indicator .page-indicator-icon {
width: 18px;
height: 18px;
background-image: url(resource:///org/gnome/shell/theme/page-indicator-inactive.svg); }
.page-indicator:hover .page-indicator-icon {
background-image: url(resource:///org/gnome/shell/theme/page-indicator-hover.svg); }
.page-indicator:active .page-indicator-icon {
background-image: url(resource:///org/gnome/shell/theme/page-indicator-active.svg); }
.page-indicator:checked .page-indicator-icon, .page-indicator:checked:active {
background-image: url(resource:///org/gnome/shell/theme/page-indicator-checked.svg); }
.app-well-app > .overview-icon.overview-icon-with-label,
.grid-search-result .overview-icon.overview-icon-with-label {
padding: 10px 8px 5px 8px;
spacing: 4px; }
.workspace-thumbnails {
visible-width: 32px;
spacing: 11px;
padding: 8px;
border-radius: 9px 0 0 9px; }
.workspace-thumbnails:rtl {
border-radius: 0 9px 9px 0; }
.workspace-thumbnail-indicator {
border: 4px solid #4a90d9;
padding: 1px; }
.search-display > StBoxLayout,
.all-apps,
.frequent-apps > StBoxLayout {
padding: 0px 88px 10px 88px; }
.workspace-thumbnails {
color: #eeeeec;
background-color: #2e3436;
border: 1px solid rgba(238, 238, 236, 0.2); }
.search-statustext, .no-frequent-applications-label {
font-size: 2em;
font-weight: bold;
color: #2e3436; }
/* NOTIFICATIONS & MESSAGE TRAY */
.url-highlighter {
link-color: #74aae2; }
.notification-banner {
font-size: 11pt;
width: 34em;
margin: 5px;
border-radius: 6px;
color: #eeeeec;
background-color: #2e3436;
border: 1px solid #a1a1a1; }
.notification-banner:hover {
background-color: #2e3436; }
.notification-banner:focus {
background-color: #2e3436; }
.notification-banner .notification-icon {
padding: 5px; }
.notification-banner .notification-content {
padding: 5px;
spacing: 5px; }
.notification-banner .secondary-icon {
icon-size: 1.09em; }
.notification-banner .notification-actions {
background-color: #a1a1a1;
padding-top: 2px;
spacing: 1px; }
.notification-banner .notification-button {
padding: 4px 4px 5px;
background-color: #222728; }
.notification-banner .notification-button:first-child {
border-radius: 0 0 0 6px; }
.notification-banner .notification-button:last-child {
border-radius: 0 0 6px 0; }
.notification-banner .notification-button:hover, .notification-banner .notification-buttonfocus {
background-color: #292f30; }
.summary-source-counter {
font-size: 10pt;
font-weight: bold;
height: 1.6em;
width: 1.6em;
-shell-counter-overlap-x: 3px;
-shell-counter-overlap-y: 3px;
background-color: #4a90d9;
color: #ffffff;
border: 2px solid #eeeeec;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
border-radius: 0.9em; }
.secondary-icon {
icon-size: 1.09em; }
.chat-body {
spacing: 5px; }
.chat-response {
margin: 5px; }
.chat-log-message {
color: #17191a; }
.chat-new-group {
padding-top: 1em; }
.chat-received {
padding-left: 4px; }
.chat-received:rtl {
padding-left: 0px;
padding-right: 4px; }
.chat-sent {
padding-left: 18pt;
color: #0b0c0d; }
.chat-sent:rtl {
padding-left: 0;
padding-right: 18pt; }
.chat-meta-message {
padding-left: 4px;
font-size: 9pt;
font-weight: bold;
color: black; }
.chat-meta-message:rtl {
padding-left: 0;
padding-right: 4px; }
.hotplug-transient-box {
spacing: 6px;
padding: 2px 72px 2px 12px; }
.hotplug-notification-item {
padding: 2px 10px; }
.hotplug-notification-item:focus {
padding: 1px 71px 1px 11px; }
.hotplug-notification-item-icon {
icon-size: 24px;
padding: 2px 5px; }
.hotplug-resident-box {
spacing: 8px; }
.hotplug-resident-mount {
spacing: 8px;
border-radius: 4px; }
.hotplug-resident-mount:hover {
background-color: rgba(237, 237, 237, 0.3); }
.hotplug-resident-mount-label {
color: inherit;
padding-left: 6px; }
.hotplug-resident-mount-icon {
icon-size: 24px;
padding-left: 6px; }
.hotplug-resident-eject-icon {
icon-size: 16px; }
.hotplug-resident-eject-button {
padding: 7px;
border-radius: 5px;
color: pink; }
/* Eeeky things */
.legacy-tray {
background-color: #ededed;
border: 1px solid #a1a1a1;
border-bottom-width: 0; }
.legacy-tray:ltr {
border-radius: 0 6px 0 0;
border-left-width: 0; }
.legacy-tray:rtl {
border-radius: 6px 0 0 0;
border-right-width: 0; }
.legacy-tray-handle,
.legacy-tray-icon {
padding: 6px; }
.legacy-tray-handle StIcon,
.legacy-tray-icon StIcon {
icon-size: 24px; }
.legacy-tray-handle:hover, .legacy-tray-handle:focus,
.legacy-tray-icon:hover,
.legacy-tray-icon:focus {
background-color: rgba(46, 52, 54, 0.1); }
.legacy-tray-icon-box {
spacing: 12px; }
.legacy-tray-icon-box:ltr {
padding-left: 12px; }
.legacy-tray-icon-box:rtl {
padding-right: 12px; }
.legacy-tray-icon-box StButton {
width: 24px;
height: 24px; }
.magnifier-zoom-region {
border: 2px solid #4a90d9; }
.magnifier-zoom-region.full-screen {
border-width: 0; }
/* On-screen Keyboard */
#keyboard {
background-color: rgba(46, 52, 54, 0.7); }
.keyboard-layout {
spacing: 10px;
padding: 10px; }
.keyboard-row {
spacing: 15px; }
.keyboard-key {
color: #eeeeec;
background-color: #2e3436;
border-color: rgba(0, 0, 0, 0.7);
box-shadow: inset 0 1px #454f52;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
min-height: 2em;
min-width: 2em;
font-size: 14pt;
font-weight: bold;
border-radius: 5px;
border: 1px solid #a1a1a1;
color: white; }
.keyboard-key:focus {
color: #eeeeec;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
box-shadow: inset 0px 0px 0px 1px #4a90d9; }
.keyboard-key:hover, .keyboard-key:checked {
color: white;
border-color: rgba(0, 0, 0, 0.7);
background-color: #454f52;
box-shadow: inset 0 1px #5d696d;
text-shadow: 0 1px black;
icon-shadow: 0 1px black; }
.keyboard-key:active {
color: white;
border-color: rgba(0, 0, 0, 0.7);
background-color: #222728;
box-shadow: inset 0 0 black;
text-shadow: none;
icon-shadow: none; }
.keyboard-key:grayed {
background-color: #2e3436;
color: #eeeeec;
border-color: rgba(0, 0, 0, 0.7); }
.keyboard-subkeys {
color: white;
padding: 5px;
-arrow-border-radius: 10px;
-arrow-background-color: rgba(46, 52, 54, 0.7);
-arrow-border-width: 2px;
-arrow-border-color: rgba(238, 238, 236, 0.2);
-arrow-base: 20px;
-arrow-rise: 10px;
-boxpointer-gap: 5px; }
.candidate-popup-content {
padding: 0.5em;
spacing: 0.3em; }
.candidate-index {
padding: 0 0.5em 0 0;
color: #17191a; }
.candidate-box {
padding: 0.3em 0.5em 0.3em 0.5em;
b
gitextract_vl5y1mi7/ ├── .Xdefaults ├── .bashrc ├── .gitconfig ├── .gitignore ├── .spacemacs ├── .zshenv ├── .zshrc ├── Brewfile ├── Custom.css ├── Custom_flymake.css ├── README.md ├── VPN-Unified-Cloud-Formation.json ├── adben-new.zsh-theme ├── adben.zsh-theme ├── bullet-train.zsh-theme ├── daily_stuff.sh ├── dk-tomorrow-night.icls ├── fira.sh ├── gnome-classic.css ├── hosts ├── idea.properties ├── idea64.vmoptions ├── netbeans.conf ├── sonar.properties └── userChrome.css
Condensed preview — 25 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,318K chars).
[
{
"path": ".Xdefaults",
"chars": 1873,
"preview": "URxvt*termName: rxvt\nURxvt.perl-ext-common: default,matcher,readline,selection-to-clipboard,tabbedex,searchable-scrollba"
},
{
"path": ".bashrc",
"chars": 19667,
"preview": "#######################################################\n# Adolfo Benedetti's .bashrc file, \n# adolfo.benedetti@gmail.com"
},
{
"path": ".gitconfig",
"chars": 1094,
"preview": "[user]\n\tname = Adolfo Benedetti\n\temail = adolfo.benedetti@gmail.com\n[core]\n\teditor = vim\n\tautocrlf = false\n[filter \"lfs\""
},
{
"path": ".gitignore",
"chars": 76,
"preview": ".classpath\n.idea\n.project\n.settings/\n*.iml\ntarget/\natlassian-ide-plugin.xml\n"
},
{
"path": ".spacemacs",
"chars": 41758,
"preview": ";; -*- mode: emacs-lisp; lexical-binding: t -*-\n;; This file is loaded by Spacemacs at startup.\n;; It must be stored in "
},
{
"path": ".zshenv",
"chars": 4373,
"preview": "\n## Customize to your needs... #PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local"
},
{
"path": ".zshrc",
"chars": 9115,
"preview": "## DEBUG ZSH: Performance see bottom\n## zmodload zsh/zprof # top of the .zshrc file\n\n# Pure theme, not an omz one, see h"
},
{
"path": "Brewfile",
"chars": 3650,
"preview": "tap \"adoptopenjdk/openjdk\"\ntap \"d12frosted/emacs-plus\"\ntap \"homebrew/bundle\"\ntap \"homebrew/cask\"\ntap \"homebrew/cask-font"
},
{
"path": "Custom.css",
"chars": 6882,
"preview": "/*------------------------------------------------\n\nHow to Install 怎麼安裝\n1. Download Custom.css\n2. Replace the Custom.css"
},
{
"path": "Custom_flymake.css",
"chars": 6882,
"preview": "/*------------------------------------------------\n\nHow to Install 怎麼安裝\n1. Download Custom.css\n2. Replace the Custom.css"
},
{
"path": "README.md",
"chars": 55,
"preview": "# config\n\nThe config files for most of the tools I use\n"
},
{
"path": "VPN-Unified-Cloud-Formation.json",
"chars": 9874,
"preview": "{\n \"AWSTemplateFormatVersion\": \"2010-09-09\",\n \"Description\": \"30MHz Private and secure VPN template with support for L"
},
{
"path": "adben-new.zsh-theme",
"chars": 2089,
"preview": "#!/usr/bin/env zsh\n### Shows prompt character according to the VCS you are currently in or super/normal user\nfunction pr"
},
{
"path": "adben.zsh-theme",
"chars": 3618,
"preview": "#!/usr/bin/env zsh\n<<<<<<< HEAD\n########## VCS ###########\n### Coloured Git state indicator → taken from: http://brianca"
},
{
"path": "bullet-train.zsh-theme",
"chars": 20529,
"preview": "# README\n#\n# In order for this theme to render correctly, you will need a\n# [Powerline-patched font](https://github.com/"
},
{
"path": "daily_stuff.sh",
"chars": 1750,
"preview": "#!/bin/zsh\n# updating macports\necho \"::: Updating macports :::\"\n#sudo port -v selfupdate;\n#sudo port -v upgrade outdated"
},
{
"path": "dk-tomorrow-night.icls",
"chars": 27647,
"preview": "<scheme name=\"DK Tomorrow Night\" version=\"142\" parent_scheme=\"Default\">\n <colors>\n <option name=\"ADDED_LINES_COLOR\" "
},
{
"path": "fira.sh",
"chars": 951,
"preview": "#!/bin/bash\n\n## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html\n\ncd /tmp\n\n#"
},
{
"path": "gnome-classic.css",
"chars": 46995,
"preview": "/* Use the gnome-shell theme, but with light colors */\n/* This stylesheet is generated, DO NOT EDIT */\n/* Copyright 2009"
},
{
"path": "hosts",
"chars": 1998461,
"preview": "# This hosts file is a merged collection of hosts from reputable sources,\n# with a dash of crowd sourcing via Github\n#\n#"
},
{
"path": "idea.properties",
"chars": 932,
"preview": "# custom IntelliJ IDEA properties\n\n#---------------------------------------------------------------------\n# Maximum file"
},
{
"path": "idea64.vmoptions",
"chars": 1306,
"preview": "# custom IntelliJ IDEA VM options\n\n-ea\n-server\n-Xms1024m\n-Xmx4096m\n-Xss16m\n-XX:MaxMetaspaceSize=2G\n-XX:MetaspaceSize=1G\n"
},
{
"path": "netbeans.conf",
"chars": 4298,
"preview": "# Default locations of userdir and cachedir:\n# (http://wiki.netbeans.org/FaqWhatIsUserdir)\n#\n# On Windows ${DEFAULT_USER"
},
{
"path": "sonar.properties",
"chars": 14795,
"preview": "# Property values can:\r\n# - reference an environment variable, for example sonar.jdbc.url= ${env:SONAR_JDBC_URL}\r\n# - be"
},
{
"path": "userChrome.css",
"chars": 2043,
"preview": "/* COLOR */\n/* HUD Location bar history drop-down */\n@import url(\"chrome://browser/skin/custom/hud_dropdown.css\");\n\n/* G"
}
]
About this extraction
This page contains the full source code of the adben/config GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 25 files (2.1 MB), approximately 558.6k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.