Skip to content

Commit

Permalink
Some boilerplate code for experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 27, 2013
1 parent c17eec5 commit da8957a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/tmuxp.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#!/usr/bin/env bash

_python_argcomplete() {
local IFS='\013'
COMPREPLY=( $(IFS="$IFS" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
_ARGCOMPLETE=1 \
"$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )
if [[ $? != 0 ]]; then
unset COMPREPLY
fi
}



# SHELLNAME=`lsof -p $$ | awk '(NR==2) {print $1}'`

# if [ $SHELLNAME = "bash" ]; then
# elif [ $SHELLNAME = "zsh" ]; then
# elif [ $SHELLNAME = "tcsh" ]; then
# fi

eval "$(register-python-argcomplete tmuxp)"

0 comments on commit da8957a

Please sign in to comment.