Bash-completion is very slow on MSYS2 when the current user is a domain user. This describes the cause and the solutions.
Expansion of ~*
is very slow when you use a domain user. For example:
#!/bin/sh | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} | |
case $1 in | |
prereqs) | |
prereqs |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
git log --oneline -1 <PR-BRANCH>
git push -f origin :
/* | |
* $Id: $ | |
* | |
* Module: free -- description | |
* Created: 15-SEP-2008 17:56 | |
* Author: tmr | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> |
;; * IDO/IVY completion menu | |
;; This is originally from https://www.emacswiki.org/emacs/HippieExpand#toc10 | |
;; | |
;; There are a few improvements: | |
;; - It is undo friendly with the addition of save-excursion | |
;; - It will use ivy for the expansion menu if ivy is available, falls back to ido | |
;; - Automatically expands if there is only one possible expansion | |
(defun my-hippie-expand-completions (&optional hippie-expand-function) | |
"Return list of completions generated by `hippie-expand'." |
This should work on other Fedora-based distributions and for other packages, but I have not done extensive testing
Using up-to-date versions of software on RHEL is a pain. I understand the eneterprise benefits, but configuring a development environment can be confusing, with most people using a combination of symlinks, adding folders to PATH
, and enabling an scl_source
While this is still generally acceptable, there exists an alternative method (sorry).
The alternatives
essentially creates a symlink, but it actually is a symbolic link to the alternatives directory, which in turn is a symbolic link to the actual program.
This allows for better package management and confines all sysadmin changes to the /etc directory, all while making switching back easier. It feels to me a lot like virtualenv
in python