caio.co/de/bash.d

Remove some unused libs

Id
75de41a241cf000beaa073b21a1222839bbe95af
Author
Caio
Commit time
2013-11-15T12:24:49-02:00

Deleted lib/haskell.sh

@@ -1,8 +1,0
-__load_cabal() {
- local cabal_dir="${HOME}/.cabal"
- test ! -d ${cabal_dir} && return 0
- pathprepend ${cabal_dir}/bin/
- export MANPATH=${cabal_dir}/share/man/:$(manpath -g)
-}
-
-__load_cabal

Deleted lib/onepiece.sh

@@ -1,47 +1,0
-#!/bin/bash
-
-__wm_check() {
- if [ ! -d WATCHED ]; then
- echo "You must create a ./WATCHED dir to use this command" >&2
- return 2
- fi
- return 0
-}
-
-wm() {
- video="${@}"
- mplayer -ass -embeddedfonts "${video}"
- result=$?
- if test $result -eq 0; then
- mv "${video}" WATCHED/
- subfile="${video%.*}.srt"
- test -f "${subfile}" && mv "${subfile}" WATCHED
- return 0;
- fi
-}
-
-wnext() {
- __wm_check || return $?
- local target=""
- while read LINE; do
- test -d "${LINE}" && continue
- test ! -f "${LINE}" && continue
- target=${LINE}
- break
- done < <(/bin/ls -1 !(*.srt|WATCHED))
- test -z "${target}" && return 1
- wm "${target}"
-}
-
-wprev() {
- __wm_check || return $?
- local target=""
- while read LINE; do
- test -d "${LINE}" && continue
- test ! -f "${LINE}" && continue
- target=${LINE}
- break
- done < <(ls -1 WATCHED| egrep -v '.+\.srt'| tac| sed 's/^/WATCHED\//g')
- test -z "${target}" && return 1
- mplayer "${target}"
-}

Deleted lib/uumount.sh

@@ -1,23 +1,0
-#!/bin/bash
-
-__umountables() {
- local cur
- local IFS=$'\n'
- wrkdir='/media/'
- cur=${COMP_WORDS[COMP_CWORD]};
- len=$((${#wrkdir} + 1));
-
- if [ $COMP_CWORD -eq 1 ]; then
- COMPREPLY=( $(compgen -d /media/${cur}| cut -b $len-) )
- else
- COMPREPLY=()
- fi
-}
-
-uumount() {
- [ ${#} -ne 1 ] && return 1;
- udiskie-umount /media/${1}
-}
-
-complete -F __umountables uumount
-