Skip to content

Instantly share code, notes, and snippets.

JamieFlournoy JamieFlournoy

Block or report user

Report or block JamieFlournoy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JamieFlournoy
JamieFlournoy / screen.patch
Created Feb 1, 2012
Patch to make Ubuntu's GNU Screen bash completion complete on the text part of the name
View screen.patch
--- screen 2012-01-31 21:24:46.000000000 -0800
+++ screen-new 2012-01-31 21:24:49.000000000 -0800
@@ -12,7 +12,7 @@
fi
COMPREPLY=( $( command screen -ls | sed -ne \
- 's|^['$'\t'']\+\('"$cur"'[0-9]\+\.[^'$'\t'']\+\)'"$pattern"'$|\1|p' ) )
+ '/^\t'$cur[0-9]*'\..*\|^\t[0-9]*\.'$cur'.*\|^\t'$cur'.*/!d;s|^['$'\t'']\+\([0-9]*\.[^'$'\t'']\+\).*'$pattern'.*$|\1|p' ) )
} &&
_screen()
You can’t perform that action at this time.