Skip to content

Commit da8957a

Browse files
committed
Some boilerplate code for experimenting
1 parent c17eec5 commit da8957a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: pkg/tmuxp.bash

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
11
#!/usr/bin/env bash
22

3+
_python_argcomplete() {
4+
local IFS='\013'
5+
COMPREPLY=( $(IFS="$IFS" \
6+
COMP_LINE="$COMP_LINE" \
7+
COMP_POINT="$COMP_POINT" \
8+
_ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
9+
_ARGCOMPLETE=1 \
10+
"$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )
11+
if [[ $? != 0 ]]; then
12+
unset COMPREPLY
13+
fi
14+
}
15+
16+
17+
18+
# SHELLNAME=`lsof -p $$ | awk '(NR==2) {print $1}'`
19+
20+
# if [ $SHELLNAME = "bash" ]; then
21+
# elif [ $SHELLNAME = "zsh" ]; then
22+
# elif [ $SHELLNAME = "tcsh" ]; then
23+
# fi
24+
325
eval "$(register-python-argcomplete tmuxp)"

0 commit comments

Comments
 (0)