aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_bash_aliases9
-rw-r--r--_bash_completion.d/todo_completion113
-rw-r--r--_bash_logout7
-rw-r--r--_bash_profile5
-rw-r--r--_bashrc130
5 files changed, 0 insertions, 264 deletions
diff --git a/_bash_aliases b/_bash_aliases
deleted file mode 100644
index 7d25ed6..0000000
--- a/_bash_aliases
+++ /dev/null
@@ -1,9 +0,0 @@
-# ~/.bash_aliases
-#
-
-### sbcl ###
-#export CL_BREAK_CHARS="\"#'(),;\`\\|!?[]{}"
-#alias sbcl="rlwrap -b \${CL_BREAK_CHARS} sbcl"
-alias sbcl='sbcl --no-inform'
-
-# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: #
diff --git a/_bash_completion.d/todo_completion b/_bash_completion.d/todo_completion
deleted file mode 100644
index f443acb..0000000
--- a/_bash_completion.d/todo_completion
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/bin/bash source-this-script
-[ "$BASH_VERSION" ] || return
-
-_todo()
-{
- local cur prev opts
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
-
- local -r OPTS="-@ -@@ -+ -++ -d -f -h -p -P -PP -a -n -t -v -vv -V -x"
- local -r COMMANDS="\
- add a addto addm append app archive command del \
- rm depri dp do help list ls listaddons listall lsa listcon \
- lsc listfile lf listpri lsp listproj lsprj move \
- mv prepend prep pri p replace report shorthelp"
- local -r MOVE_COMMAND_PATTERN='^(move|mv)$'
-
- local _todo_sh=${_todo_sh:-todo.sh}
- local completions
- if [ $COMP_CWORD -eq 1 ]; then
- completions="$COMMANDS $(eval TODOTXT_VERBOSE=0 $_todo_sh command listaddons) $OPTS"
- elif [[ $COMP_CWORD -gt 2 && ( \
- "${COMP_WORDS[COMP_CWORD-2]}" =~ $MOVE_COMMAND_PATTERN || \
- "${COMP_WORDS[COMP_CWORD-3]}" =~ $MOVE_COMMAND_PATTERN ) ]]; then
- # "move ITEM# DEST [SRC]" has file arguments on positions 2 and 3.
- completions=$(eval TODOTXT_VERBOSE=0 $_todo_sh command listfile)
- else
- case "$prev" in
- command)
- completions=$COMMANDS;;
- help)
- completions="$COMMANDS $(eval TODOTXT_VERBOSE=0 $_todo_sh command listaddons)";;
- addto|listfile|lf)
- completions=$(eval TODOTXT_VERBOSE=0 $_todo_sh command listfile);;
- -*) completions="$COMMANDS $(eval TODOTXT_VERBOSE=0 $_todo_sh command listaddons) $OPTS";;
- *) case "$cur" in
- +*) completions=$(eval TODOTXT_VERBOSE=0 $_todo_sh command listproj)
- COMPREPLY=( $( compgen -W "$completions" -- $cur ))
- [ ${#COMPREPLY[@]} -gt 0 ] && return 0
- # Fall back to projects extracted from done tasks.
- completions=$(eval 'TODOTXT_VERBOSE=0 TODOTXT_SOURCEVAR=\$DONE_FILE' $_todo_sh command listproj)
- ;;
- @*) completions=$(eval TODOTXT_VERBOSE=0 $_todo_sh command listcon)
- COMPREPLY=( $( compgen -W "$completions" -- $cur ))
- [ ${#COMPREPLY[@]} -gt 0 ] && return 0
- # Fall back to contexts extracted from done tasks.
- completions=$(eval 'TODOTXT_VERBOSE=0 TODOTXT_SOURCEVAR=\$DONE_FILE' $_todo_sh command listcon)
- ;;
- *) if [[ "$cur" =~ ^[0-9]+$ ]]; then
- # Remove the (padded) task number; we prepend the
- # user-provided $cur instead.
- # Remove the timestamp prepended by the -t option,
- # and the done date (for done tasks); there's no
- # todo.txt option for that yet.
- # But keep priority and "x"; they're short and may
- # provide useful context.
- # Remove any trailing whitespace; the Bash
- # completion inserts a trailing space itself.
- # Finally, limit the output to a single line just as
- # a safety check of the ls action output.
- local todo=$( \
- eval TODOTXT_VERBOSE=0 $_todo_sh '-@ -+ -p -x command ls "^ *${cur} "' | \
- sed -e 's/^ *[0-9]\{1,\} //' -e 's/^\((.) \)\{0,1\}[0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} /\1/' \
- -e 's/^\([xX] \)\([0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} \)\{1,2\}/\1/' \
- -e 's/[[:space:]]*$//' \
- -e '1q' \
- )
- # Append task text as a shell comment. This
- # completion can be a safety check before a
- # destructive todo.txt operation.
- [ "$todo" ] && COMPREPLY[0]="$cur # $todo"
- return 0
- else
- return 0
- fi
- ;;
- esac
- ;;
- esac
- fi
-
- COMPREPLY=( $( compgen -W "$completions" -- $cur ))
- return 0
-}
-complete -F _todo todo.sh
-
-# If you define an alias (e.g. "t") to todo.sh, you need to explicitly enable
-# completion for it, too:
-#complete -F _todo t
-# It is recommended to put this line next to your alias definition in your
-# ~/.bashrc (or wherever else you're defining your alias). If you simply
-# uncomment it here, you will need to redo this on every todo.txt update!
-
-# If you have renamed the todo.sh executable, or if it is not accessible through
-# PATH, you need to add and use a wrapper completion function, like this:
-#_todoElsewhere()
-#{
-# local _todo_sh='/path/to/todo2.sh'
-# _todo "$@"
-#}
-#complete -F _todoElsewhere /path/to/todo2.sh
-
-# If you use aliases to use different configuration(s), you need to add and use
-# a wrapper completion function for each configuration if you want to complete
-# fron the actual configured task locations:
-#alias todo2='todo.sh -d "$HOME/todo2.cfg"'
-#_todo2()
-#{
-# local _todo_sh='todo.sh -d "$HOME/todo2.cfg"'
-# _todo "$@"
-#}
-#complete -F _todo2 todo2
diff --git a/_bash_logout b/_bash_logout
deleted file mode 100644
index de4f5f7..0000000
--- a/_bash_logout
+++ /dev/null
@@ -1,7 +0,0 @@
-# ~/.bash_logout: executed by bash(1) when login shell exits.
-
-# when leaving the console clear the screen to increase privacy
-
-if [ "$SHLVL" = 1 ]; then
- [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
-fi
diff --git a/_bash_profile b/_bash_profile
deleted file mode 100644
index 94a6622..0000000
--- a/_bash_profile
+++ /dev/null
@@ -1,5 +0,0 @@
-# /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
diff --git a/_bashrc b/_bashrc
deleted file mode 100644
index a962229..0000000
--- a/_bashrc
+++ /dev/null
@@ -1,130 +0,0 @@
-# ~/.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
-case $- in
- *i*) ;;
- *) return;;
-esac
-
-# don't put duplicate lines or lines starting with space in the history.
-# See bash(1) for more options
-HISTCONTROL=ignoreboth
-
-# append to the history file, don't overwrite it
-shopt -s histappend
-
-# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
-HISTSIZE=1000
-HISTFILESIZE=2000
-
-# Vi key bindings
-set -o vi
-
-# check the window size after each command and, if necessary,
-# update the values of LINES and COLUMNS.
-shopt -s checkwinsize
-
-# If set, the pattern "**" used in a pathname expansion context will
-# match all files and zero or more directories and subdirectories.
-#shopt -s globstar
-
-# 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|*-256color) 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\]\$ '
-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
-
-# 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
-
-# colored GCC warnings and errors
-export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-
-# 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 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 ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
-fi
-
-
-### environment variables {{{
-export EDITOR=vim
-### }}}
-
-
-### aliases {{{
-alias ll='ls -l'
-alias lf='ls -F'
-alias la='ls -A'
-alias l='ls -CF'
-
-# ~/.bash_aliases
-[ -f ~/.bash_aliases ] && . ~/.bash_aliases
-### aliases }}}
-
-
-# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: #