summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2015-06-13 11:06:24 +0100
committerdakkar <dakkar@thenautilus.net>2015-06-13 11:06:24 +0100
commitde8c0cc21957afa555a2d6b08e6777329c4d2942 (patch)
tree6fdaded222a9fc288cac6accfa107eb4a1331f86
downloaddotfiles-de8c0cc21957afa555a2d6b08e6777329c4d2942.tar.gz
dotfiles-de8c0cc21957afa555a2d6b08e6777329c4d2942.tar.bz2
dotfiles-de8c0cc21957afa555a2d6b08e6777329c4d2942.zip
Import from nautilus
-rw-r--r--.bash_profile25
-rw-r--r--.bashrc60
-rw-r--r--.fortune/scifi-lines142
-rw-r--r--.fortune/scifi-lines.datbin0 -> 212 bytes
-rw-r--r--.git-prompt.conf107
-rw-r--r--.gitconfig35
-rw-r--r--.inputrc5
-rw-r--r--.psqlrc10
-rw-r--r--.screenrc76
-rwxr-xr-x.signature-thenautilus17
10 files changed, 477 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
new file mode 100644
index 0000000..47aae0f
--- /dev/null
+++ b/.bash_profile
@@ -0,0 +1,25 @@
+# /etc/skel/.bash_profile
+
+# This file is sourced by bash for login shells. The following line
+# runs your .bashrc and is recommended by the bash info pages.
+[[ -f ~/.bashrc ]] && . ~/.bashrc
+
+EDITOR=vi
+export EDITOR
+
+source ~/perl5/perlbrew/etc/bashrc
+export PATH="${HOME}/bin:${PATH}"
+export GPG_TTY="$(tty)"
+
+eval "$(keychain --eval --noask --inherit any-once id_rsa id_nap_rsa 75193F88 D7A5DBBE)"
+
+function e() {
+ emacsclient "$@"
+}
+
+function se() {
+ emacsclient "${@/#//sudo::}"
+}
+
+fortune
+
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..3318cd5
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,60 @@
+# /etc/skel/.bashrc
+#
+# This file is sourced by all *interactive* bash shells on startup,
+# including some apparently interactive shells such as scp and rcp
+# that can't tolerate any output. So make sure this doesn't display
+# anything or bad things will happen !
+
+
+# Test for an interactive shell. There is no need to set anything
+# past this point for scp and rcp, and it's important to refrain from
+# outputting anything in those cases.
+if [[ $- != *i* ]] ; then
+ # Shell is non-interactive. Be done now!
+ return
+fi
+
+export LC_ALL=en_US.UTF-8
+alias clr="echo -ne '\033c'"
+alias mv="mv -i"
+alias cp="cp -i"
+alias btd="bittorrent-curses --max_upload_rate 6 "
+export history_control=ignoreboth
+export command_oriented_history
+export HISTIGNORE='&:[bf]g:exit:ls'
+shopt -s extglob
+shopt -s cmdhist
+shopt -s histappend
+shopt -s no_empty_cmd_completion
+
+[ -f /etc/profile.d/xprint.sh ] && source /etc/profile.d/xprint.sh
+
+function xtitle() {
+ case $TERM in
+ xterm*|rxvt|Eterm|eterm)
+ echo -ne "\e]0;$1\007"
+ ;;
+ screen)
+ echo -ne "\e_$1\e\\"
+ ;;
+ esac
+}
+
+function xreset() {
+ case $TERM in
+ xterm*|rxvt|Eterm|eterm)
+ echo -ne '\ec'
+ ;;
+ esac
+}
+
+. ~/src/git-prompt/git-prompt.sh
+
+#export PS1="\
+#\[\033[1;37m\]\u@\h\
+#\[\033[0;37m\]:\w\n\
+#\[\033[1;34m\](\$?)\
+#\[\033[0;33m\][\j]\
+#\[\033[0;34m\]\$\
+#\[\033[0m\] "
+
diff --git a/.fortune/scifi-lines b/.fortune/scifi-lines
new file mode 100644
index 0000000..5e380bd
--- /dev/null
+++ b/.fortune/scifi-lines
@@ -0,0 +1,142 @@
+You haven’t seen untidiness until you’ve seen a room where the gravity has failed twice in different directions.
+ -- from "Only Forward" by Michael Marshall Smith
+%
+The one thing you can’t give for your heart’s desire is your heart.
+ -- from "Memory" by Lois McMaster Bujold
+%
+Deep they delved us, high they builded us, fair they wrought us, but they are gone.
+ -- from "The Fellowship of the Ring" by J.R.R. Tolkien
+%
+Fear is the little death, fear is the mindkiller.
+ -- from "Dune" by Frank Herbert
+%
+There Ain’t No Such Thing As A Free Lunch.
+ -- from "The Moon is a Harsh Mistress" by Robert Heinlein
+%
+How wicked, oh my brothers, innocent milk must always seem to me now.
+ -- from "A Clockwork Orange" by Anthony Burgess
+%
+We are not defined by what we die for, but by what we live for.
+ -- from "Shaman's Crossing" by Robin Hobb
+%
+On a shelf over the experiment table was the inevitable skull, which the wizard put there to remind him of death, though it usually reminded him that he needed to go to the dentist.
+ -- from "A Face in the Frost" by John Bellairs
+%
+But when a girl gives a boy a dead squid--that has to mean something.
+ -- from "The Silent Gondoliers" by S. Morgenstern
+%
+Violence is the last refuge of the incompent.
+ -- from "Foundation" by Isaac Asimov (by mouth of Salvor Hardin)
+%
+I saw her chewing gum, when I was thirteen, and I fell for her like a suicide from a bridge.
+ -- from "Troll Bridge" by Neil Gaiman
+%
+I will hate the man you choose because he isn't me, and love him if he makes you smile.
+ -- from "The Eye of the World" by Robert Jordan
+%
+No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style.
+ -- from "Jhereg" by Steven Brust
+%
+The ships hung in the sky in much the same way that bricks don't.
+ -- from "The Hitch-Hiker's Guide to the Galaxy" by Douglas Adams
+%
+For a change, Lady Luck seemed to be smiling on me. Then again, maybe the fickle wench was just lulling me into a false sense of security while she reached for a rock.
+ -- from "The Icarus Hunt" by Timothy Zahn
+%
+It's only after you've lost everything that you're free to do anything.
+ -- from "Fight Club" by Chuck Palahniuk
+%
+It may even be too late, but shall we walk together a while, you and I?
+ -- from "Lions of Al-Rassan" by Guy Gavriel Kay
+%
+Every time we fix something that's broken, whether it's a car engine or a broken heart, that's an act of magic.
+
+And what makes it magic is that we can choose to create or help, just like we can choose to harm.
+ -- from "The Mystery of Grace" by Charles de Lint
+%
+That we are capable only of being what we are remains our unforgivable sin.
+ -- from "The Claw of the Conciliator" by Gene Wolfe
+%
+What is life, but an improvisation to the music?
+ -- from "The Dragon Waiting" by John M. Ford
+%
+"Sorry," he said. "But it is funny, isn't it? All these years. All these years a secret. Greatest discovery in centuries. Too big a secret. Say nothing to anybody. Too dangerous. And now this! A beauty treatment...It is funny, isn't it? Don't you think it's funny?"
+ -- from "Trouble with Lichen" by John Wyndham
+%
+I must not have fun. Fun is the time-killer. Fun is for children, customers and the help. I will forget fun. I will take a pass on it. And while it is going, I will turn a blind eye towards it. When fun is gone there will be nothing. Only I will remain - I, and my will to win. Damn, I'm good.
+ -- from "Doon" by the Harvard Lampoon
+%
+Gods die. And when they truly die they are unmourned and unremembered. Ideas are more difficult to kill than people, but they can be killed, in the end.
+ -- from "American Gods" by Neil Gaiman
+%
+Once upon a time, when men and women hurled through the air on metal wings, when they wore webbed feet and walked on the bottom of the sea, learning the speech of whales and the songs of the dolphins, when pearly-fleshed and jewelled apparitions of Texan herdsmen and houris shimmered in the dusk on Nicaraguan hillsides, when folk in Norway and Tasmania in dead of winter could dream of fresh strawberries, dates, guavas and passion fruits and find them spread next morning on their tables, there was a woman who was largely irrelevant, and therefore happy.
+ -- from "The Djinn in the Nightingale's Eye" by A.S. Byatt
+%
+Fair was she, and fatal as fair,
+And cursed who gave her ear --
+Now men are few, and wolves are more,
+And winter drawing near.
+ -- from "Gate of Ivrel" by CJ Cherryh
+%
+For each of us it is the same: worlds close or open as we go.
+%
+The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents. We live on a placid island of ignorance in the midst of black seas of infinity; and it was not meant that we should voyage far.
+ -- from "The Call of Cthulhu" by H.P. Lovecraft
+%
+I am rather of the opinion that in England a gentleman’s dreams are his own private concern. I fancy there is a law to that effect and, if there is not, why, Parliament should certainly be made to pass one immediately!
+ -- from "Jonathan Strange & Mr. Norrell" by Susanna Clarke
+%
+Ignorance is natural. Stupidity takes commitment.
+ -- from "The Quote Book of Solomon Short" by David Gerrold
+%
+Best not to speculate, really. You can't second-guess ineffability, I always say.
+ -- from "Good Omens" by Neil Gaiman & Terry Pratchett
+%
+They had met in Baikonur twenty years before, and once lived together on Novy Mir for several months; over the years they had become like sisters, in that they were not much alike, and did not often get along, and yet were intimate.
+ -- from "Red Mars" by Kim Stanley Robinson
+%
+That wasn't any act of God. That was an act of pure human fuckery.
+ -- from "The Stand" by Stephen King
+%
+I did two things on my seventy-fifth birthday. I visited my wife's grave. Then I joined the army.
+ -- from "Old Man's War" by John Scalzi
+%
+The line consists of an infinite number of points; the plane, of an infinite number of lines; the volume, of an infinite number of planes; the hypervolume, of an infinite number of volumes… No—this, more geometrico, is decidedly not the best way to begin my tale
+ -- from "The Book of Sand" by Jorge Luis Borges
+%
+Your Father calls you to His Court. You need not pack; you go garbed in glory as you stand.
+ -- from "Paladin of Souls" by Lois McMaster Bujold
+%
+The Adversary is not creative, except in the sense that he always seeks evil and always does good.
+ -- from "A Case of Conscience" by James Blish
+%
+What else do you do when you get a strange dream, but check it in the catalogue?
+ -- from "Unquenchable Fire" by Rachel Pollack
+%
+The primate was staring intently into her face as it made the same gesture, the same sign, over and over again: rubbing its palm in a circular motion over its chest, then a fist-on-palm gesture. Its eyes never left hers.
+Please help me. Please help me. Please…
+ -- from "City of Pearl" by Karen Traviss
+%
+If you find out anything about human sexual identity from infertility genetics, it’s that there is no straightforward match between variations in chromosomal sex and the behaviour of the individual.
+ -- from "Life" by Gwyneth Jones
+%
+One thing dying people usually know, if they have any sense left, is what they want; and that is so rare in the human condition that it commands a certain kind of respect.
+ -- from "We Who Are About To…" by Joanna Russ
+%
+I'm sorry, darling. I didn't want to shock you. I thought I could speake to you because you're the one person who's impervious to any sort of shock. I shouldn't have. It's no use. I guess.
+%
+Pulling together is the aim of despotism and tyranny. Free men pull in all kinds of directions. It's the only way to make progress.
+ -- from "Jingo" by Terry Pratchett (by wouth of Lord Vetinari)
+%
+"It would be simplest," she said diffidently, "to answer your question by saying 'magic' just as you answered mine with 'quantum mechanics.'"
+ -- from "Glory Road" by Robert Heinlein
+%
+I had an unfortunate experience when I was a young operative, you see; I was baptized in the blood of a martyr.
+ -- from "Mendoza in Hollywood" by Kage Baker
+%
+The day war was declared, a rain of telephones fell clattering ot the cobblestones from the skies above Novy Petrograd.
+ -- from "Singularity Sky" by Charles Stross
+%
+"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
+ -- from "Dirk Gently's Holistic Detective Agency" by Douglas Adams
+%
diff --git a/.fortune/scifi-lines.dat b/.fortune/scifi-lines.dat
new file mode 100644
index 0000000..c6117af
--- /dev/null
+++ b/.fortune/scifi-lines.dat
Binary files differ
diff --git a/.git-prompt.conf b/.git-prompt.conf
new file mode 100644
index 0000000..867b4bb
--- /dev/null
+++ b/.git-prompt.conf
@@ -0,0 +1,107 @@
+
+### GIT-PROMPT.SH CONFIG
+###
+### lines commented-out with single '#' are default values
+### lines commented-out with double '##' are examples
+###
+### NOTE: this is bash syntax - no spaces around "="
+
+###########################################################
+
+# error_bell=off # sound terminal bell when command return code is not zero. (use setterm to set pitch and duration)
+# max_file_list_length=100 # in characters
+# count_only=off # off - display file list; on - display file count
+# rawhex_len=5 # length of git rawhex revision id display (use 0 to hide it)
+
+############################################################ MODULES
+
+git_module=on
+svn_module=off
+hg_module=off
+vim_module=off
+virtualenv_module=off
+
+
+########################################################### DEFAULT OBJECTS
+### Default objects are not displayed. Example:
+
+## default_user=lvv
+## default_host="ahp" # remote host is always shown
+## default_domain="lvvnet"
+
+########################################################### Current Working Dir display
+cwd_cmd='\w' # display full path
+## cwd_cmd='\W' # display only last dir of path
+## cwd_cmd='cwd_truncate 40' # display only last N chars of path
+
+########################################################### ETC
+
+# Some don't like hostname in uppercase
+upcase_hostname=off
+# Some don't like long hostname
+# short_hostname=off # =on
+
+# Do not do VCS parsing for listed directories
+# useful for directories for which it is difficult to maintain .gitignore so
+# they are always dirty (ex: home, /etc) or directory with huge repo (ex: linux src)
+## vcs_ignore_dir_list=" /etc $HOME /usr/src/linux.git "
+
+########################################################### COLOR
+
+### directory, exit code, root color
+
+cols=`tput colors`
+if [[ -n "$cols" && $cols -ge 8 ]]; then # if terminal supports colors
+ dir_color=white
+ rc_color=cyan
+ time_color=yellow
+ jobs_color=yellow
+ prompt_color=blue
+ user_id_color=WHITE
+ root_id_color=WHITE
+
+
+ init_vcs_color=WHITE # initial
+ clean_vcs_color=BLUE # nothing to commit (working directory clean)
+ modified_vcs_color=RED # Changed but not updated:
+ added_vcs_color=GREEN # Changes to be committed:
+ mixed_vcs_color=YELLOW #
+ untracked_vcs_color=CYAN # Untracked files:
+ op_vcs_color=MAGENTA
+ detached_vcs_color=cyan
+else # B/W terminal
+ dir_color=bw_bold
+ rc_color=bw_bold
+fi
+
+### prompt character for root/non-root, default '>' for both
+# prompt_char='>'
+# root_prompt_char='>'
+prompt_char='$'
+root_prompt_char='#'
+
+##### Per host color
+
+### Per host color. If not set, color will be derived from name of host checksum).
+### Variable name is uppercase-short-hostname with appended "_host_color"
+### Example per-host-color config:
+
+## TASHA_host_color=cyan
+## AL_host_color=green
+## AHP_host_color=white
+NAUTILUS_host_color=green
+
+##### VCS (version control system) state colors
+
+# init_vcs_color=WHITE # initial
+# clean_vcs_color=blue # nothing to commit (working directory clean)
+# modified_vcs_color=red # Changed but not updated:
+# added_vcs_color=green # Changes to be committed:
+# mixed_vcs_color=yellow #
+# untracked_vcs_color=BLUE # Untracked files:
+# op_vcs_color=MAGENTA
+# detached_vcs_color=RED
+# hex_vcs_color=BLACK # git revision id: bright black (makes gray)
+hex_vcs_color=white
+
+# :vim:ft=sh ts=8 sw=8 et:
diff --git a/.gitconfig b/.gitconfig
new file mode 100644
index 0000000..c354c79
--- /dev/null
+++ b/.gitconfig
@@ -0,0 +1,35 @@
+[core]
+ excludesfile = ~/.gitignore
+
+[user]
+ name = dakkar
+ email = dakkar@thenautilus.net
+ signingkey = dakkar@thenautilus.net
+[color]
+ ui = true
+ branch = true
+ diff = true
+ grep = true
+ interactive = true
+ showbranch = true
+ status = true
+
+[push]
+ default = tracking
+[pull]
+ rebase = true
+[diff]
+ mnemonicprefix = true
+ renames = copies
+[log]
+ decorate = short
+ date = iso
+[rebase]
+ stat = true
+[alias]
+ cmp = diff -b --word-diff=color --word-diff-regex='[[:alnum:]_]+|[^[:space:]]'
+ cmplog = log -u -b --word-diff=color --word-diff-regex='[[:alnum:]_]+|[^[:space:]]'
+ logc = log --oneline --graph
+ refl = log -g --oneline 'HEAD@{now}' --date=relative
+ st = status -bs
+ tracked = ls-tree -r --name-only --full-name HEAD
diff --git a/.inputrc b/.inputrc
new file mode 100644
index 0000000..1c592ed
--- /dev/null
+++ b/.inputrc
@@ -0,0 +1,5 @@
+set show-all-if-ambiguous on
+set visible-stats on
+"\e[A": history-search-backward
+"\e[B": history-search-forward
+"\es": menu-complete
diff --git a/.psqlrc b/.psqlrc
new file mode 100644
index 0000000..c2e2462
--- /dev/null
+++ b/.psqlrc
@@ -0,0 +1,10 @@
+\timing
+\set PROMPT1 '%n@%m %/%R%x%# '
+\set PROMPT2 '%n@%m %/%R%x%# '
+\set COMP_KEYWORD_CASE upper
+\set ON_ERROR_ROLLBACK interactive
+\x auto
+\pset linestyle unicode
+\pset border 2
+\setenv PAGER less
+\setenv LESS FRSXL
diff --git a/.screenrc b/.screenrc
new file mode 100644
index 0000000..6815494
--- /dev/null
+++ b/.screenrc
@@ -0,0 +1,76 @@
+#
+# Example of a user's .screenrc file
+#
+
+# This is how one can set a reattach password:
+# password ODSJQf.4IJN7E # "1234"
+
+# no annoying audible bell, please
+vbell on
+
+# detach on hangup
+autodetach on
+
+# don't display the copyright page
+startup_message off
+
+# emulate .logout message
+pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+
+# advertise hardstatus support to $TERMCAP
+# termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
+
+# make the shell in every window a login shell
+#shell -$SHELL
+
+# autoaka testing
+# shellaka '> |tcsh'
+# shellaka '$ |sh'
+
+# set every new windows hardstatus line to somenthing descriptive
+# defhstatus "screen: ^En (^Et)"
+
+defscrollback 1000
+
+# don't kill window after the process died
+# zombie "^["
+
+nethack on
+
+################
+#
+# keybindings
+#
+
+defescape ^Pp
+escape ^Pp
+bind ^a
+bind ^q other
+
+#remove some stupid / dangerous key bindings
+bind k
+bind ^k
+bind .
+bind ^\
+bind \\
+bind ^h
+bind h
+#make them better
+bind 'K' kill
+bind 'I' login on
+bind 'O' login off
+bind '}' history
+
+################
+#
+# default windows
+#
+
+# screen -t local 0
+# screen -t mail 1 elm
+# screen -t 40 2 rlogin faui40
+
+# caption always "%3n %t%? @%u%?%? [%h]%?"
+# hardstatus alwaysignore
+# hardstatus alwayslastline "%w"
+
diff --git a/.signature-thenautilus b/.signature-thenautilus
new file mode 100755
index 0000000..3dc506c
--- /dev/null
+++ b/.signature-thenautilus
@@ -0,0 +1,17 @@
+#!/bin/sh
+cat <<EOF
+ Dakkar - <Mobilis in mobile>
+ GPG public key fingerprint = A071 E618 DD2C 5901 9574
+ 6FE2 40EA 9883 7519 3F88
+ key id = 0x75193F88
+
+EOF
+fortune -n 500 -s \
+ pqf firefly hitchhiker literature \
+ dune house-harkonnen children-of-dune dune-messiah house-atreides heretics-of-dune chapterhouse-dune god-emperor \
+ startrek starwars strangelove \
+ smac powerpuff futurama calvin \
+ tao perl linux kernelcookies linuxcookie computers osfortune \
+ magic science fortunes \
+ art food news work drugs men-women \
+ /home/dakkar/.fortune/