summaryrefslogtreecommitdiffstats
path: root/.zsh/functions
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-03 21:21:21 +0100
committerGravatar Tom Willemse2013-11-03 21:21:21 +0100
commit5c6cd059e8395d7f24d4b199e59c8c2f562dc438 (patch)
tree2e108e0724b5f5248de11c515312fa8c7c04ab4c /.zsh/functions
parentcca8771d855a3c8ba67bcb43a45967d9e4b6dd15 (diff)
downloaddotfiles-5c6cd059e8395d7f24d4b199e59c8c2f562dc438.tar.gz
dotfiles-5c6cd059e8395d7f24d4b199e59c8c2f562dc438.zip
New stow hierarchy
Diffstat (limited to '.zsh/functions')
-rw-r--r--.zsh/functions/Makefile4
-rw-r--r--.zsh/functions/add-to-list10
-rw-r--r--.zsh/functions/env3
-rw-r--r--.zsh/functions/venv15
4 files changed, 0 insertions, 32 deletions
diff --git a/.zsh/functions/Makefile b/.zsh/functions/Makefile
deleted file mode 100644
index f71df23..0000000
--- a/.zsh/functions/Makefile
+++ /dev/null
@@ -1,4 +0,0 @@
-SUBDIR=functions
-objects=env venv add-to-list
-
-include ../../dotfiles.mk
diff --git a/.zsh/functions/add-to-list b/.zsh/functions/add-to-list
deleted file mode 100644
index 18720e0..0000000
--- a/.zsh/functions/add-to-list
+++ /dev/null
@@ -1,10 +0,0 @@
-# -*- mode: sh; -*-
-if [[ ! "${(P)${1}}" =~ (^|:)"$2"(:|$) ]]; then
- if [ -n "$3" ]; then
- # Append
- typeset -g $1="${(P)${1}}:$2"
- else
- # Prepend
- typeset -g $1="$2:${(P)${1}}"
- fi
-fi
diff --git a/.zsh/functions/env b/.zsh/functions/env
deleted file mode 100644
index a79fd5d..0000000
--- a/.zsh/functions/env
+++ /dev/null
@@ -1,3 +0,0 @@
-# -*- mode: shell-script -*-
-
-/usr/bin/env "$@" | grep -v \^LESS_TERMCAP_
diff --git a/.zsh/functions/venv b/.zsh/functions/venv
deleted file mode 100644
index 03ec83d..0000000
--- a/.zsh/functions/venv
+++ /dev/null
@@ -1,15 +0,0 @@
-# -*- mode: sh; -*-
-if [ "${#}" -eq 1 ]; then
- local venv_activate="$HOME/.virtualenv/$1/bin/activate"
-
- if [ -r "$venv_activate" ]; then
- source $venv_activate
- else
- echo "$1 is not a know virtual environment"
- fi
-else
- echo "Virtual environments: "
- for itm in ~/.virtualenv/*; do
- echo " $(basename $itm)"
- done
-fi