From e5da92b0b231620e49957c486b0bbef6da0499be Mon Sep 17 00:00:00 2001 From: Nicolas Beaussart Date: Sat, 13 Aug 2016 13:54:14 +0200 Subject: [PATCH] Initial commit --- .gitmodules | 3 +++ bash_logout | 3 +++ bash_profile | 7 +++++++ bashrc | 41 +++++++++++++++++++++++++++++++++++++++++ dotbot | 1 + install | 14 ++++++++++++++ install.conf.yaml | 9 +++++++++ xinitrc | 16 ++++++++++++++++ 8 files changed, 94 insertions(+) create mode 100644 .gitmodules create mode 100644 bash_logout create mode 100644 bash_profile create mode 100644 bashrc create mode 160000 dotbot create mode 100755 install create mode 100644 install.conf.yaml create mode 100755 xinitrc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1ce5c11 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dotbot"] + path = dotbot + url = https://github.com/anishathalye/dotbot diff --git a/bash_logout b/bash_logout new file mode 100644 index 0000000..0e4e4f1 --- /dev/null +++ b/bash_logout @@ -0,0 +1,3 @@ +# +# ~/.bash_logout +# diff --git a/bash_profile b/bash_profile new file mode 100644 index 0000000..0b2eb4e --- /dev/null +++ b/bash_profile @@ -0,0 +1,7 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.extend.bash_profile ]] && . ~/.extend.bash_profile +[[ -f ~/.bashrc ]] && . ~/.bashrc + diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..fd4007c --- /dev/null +++ b/bashrc @@ -0,0 +1,41 @@ +# +# ~/.bashrc +# + + +[[ $- != *i* ]] && return + +colors() { + local fgc bgc vals seq0 + + printf "Color escapes are %s\n" '\e[${value};...;${value}m' + printf "Values 30..37 are \e[33mforeground colors\e[m\n" + printf "Values 40..47 are \e[43mbackground colors\e[m\n" + printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" + + # foreground colors + for fgc in {30..37}; do + # background colors + for bgc in {40..47}; do + fgc=${fgc#37} # white + bgc=${bgc#40} # black + + vals="${fgc:+$fgc;}${bgc}" + vals=${vals%%;} + + seq0="${vals:+\e[${vals}m}" + printf " %-9s" "${seq0:-(default)}" + printf " ${seq0}TEXT\e[m" + printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" + done + echo; echo + done +} + +[[ -f ~/.extend.bashrc ]] && . ~/.extend.bashrc + +[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +alias fixit="sudo rm -f /var/lib/pacman/db.lck && sudo pacman -Syyuu && sudo pacman -Suu" + +#fish diff --git a/dotbot b/dotbot new file mode 160000 index 0000000..a836261 --- /dev/null +++ b/dotbot @@ -0,0 +1 @@ +Subproject commit a836261d02755e5cbdb28dcfd1ff0b89de27a0c3 diff --git a/install b/install new file mode 100755 index 0000000..b1baa33 --- /dev/null +++ b/install @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git submodule update --init --recursive "${DOTBOT_DIR}" + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 0000000..45808b5 --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,9 @@ +- clean: ['~'] + +- link: + ~/.bash_profile: bash_profile + ~/.bashrc: bashrc + ~/.bash_logout: bash_logout + ~/.xinitrc: xinitrc + + diff --git a/xinitrc b/xinitrc new file mode 100755 index 0000000..0ccc554 --- /dev/null +++ b/xinitrc @@ -0,0 +1,16 @@ + +#!/bin/sh + +# +# ~/.xinitrc +# +# Executed by startx (run your window manager from here) +# + +export GTK2_RC_FILES="$HOME/.gtkrc-2.0" + +DEFAULT_SESSION=xfce4-session +case $1 in + xfce) exec dbus-launch xfce4-session ;; + *) exec dbus-launch $DEFAULT_SESSION ;; +esac