Skip to content

Instantly share code, notes, and snippets.

View waqasilyas's full-sized avatar

Waqas Ilyas waqasilyas

View GitHub Profile

Bash-completion is very slow on MSYS2

Bash-completion is very slow on MSYS2 when the current user is a domain user. This describes the cause and the solutions.

Cause

Expansion of ~* is very slow when you use a domain user. For example:

@waqasilyas
waqasilyas / bash-cheatsheet.sh
Last active October 13, 2017 21:50 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
############################# Bash CheatSheet Printable ###############################
#
# Based on https://gist.github.com/LeCoupa/122b12050f5fb267e75f
# Removed the more common ones, and added some examples. Also reformatted for easier printing.
# 0 Shortcuts.
CTRL+A # move to beginning of line
CTRL+B # moves backward one character
ALT+B # moves backward one word
CTRL+C # halts the current command