Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Aug 13, 2016
0 parents commit e5da92b
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "dotbot"]
path = dotbot
url = https://github.com/anishathalye/dotbot
3 changes: 3 additions & 0 deletions bash_logout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# ~/.bash_logout
#
7 changes: 7 additions & 0 deletions bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# ~/.bash_profile
#

[[ -f ~/.extend.bash_profile ]] && . ~/.extend.bash_profile
[[ -f ~/.bashrc ]] && . ~/.bashrc

41 changes: 41 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions dotbot
Submodule dotbot added at a83626
14 changes: 14 additions & 0 deletions install
Original file line number Diff line number Diff line change
@@ -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}" "${@}"
9 changes: 9 additions & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- clean: ['~']

- link:
~/.bash_profile: bash_profile
~/.bashrc: bashrc
~/.bash_logout: bash_logout
~/.xinitrc: xinitrc


16 changes: 16 additions & 0 deletions xinitrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e5da92b

Please sign in to comment.