diff --git a/git/bin/bash.exe b/git/bin/bash.exe new file mode 100644 index 0000000000000000000000000000000000000000..f97527acbe3bb1795329aa60081507974300d778 Binary files /dev/null and b/git/bin/bash.exe differ diff --git a/git/bin/git.exe b/git/bin/git.exe new file mode 100644 index 0000000000000000000000000000000000000000..ef49cb83112e0e7334390a58d40515894c31deb7 Binary files /dev/null and b/git/bin/git.exe differ diff --git a/git/bin/sh.exe b/git/bin/sh.exe new file mode 100644 index 0000000000000000000000000000000000000000..f97527acbe3bb1795329aa60081507974300d778 Binary files /dev/null and b/git/bin/sh.exe differ diff --git a/git/bin/vcruntime140_1.dll b/git/bin/vcruntime140_1.dll new file mode 100644 index 0000000000000000000000000000000000000000..2071f2814bbc6dac9a18b32c77ca86da09d579c3 Binary files /dev/null and b/git/bin/vcruntime140_1.dll differ diff --git a/git/cmd/git-receive-pack.exe b/git/cmd/git-receive-pack.exe new file mode 100644 index 0000000000000000000000000000000000000000..2e6114d4871b3536d115479f88e22c4f34a6cc5b Binary files /dev/null and b/git/cmd/git-receive-pack.exe differ diff --git a/git/cmd/git-upload-pack.exe b/git/cmd/git-upload-pack.exe new file mode 100644 index 0000000000000000000000000000000000000000..264dc94edd9223b8db412fa27267dbc2831860e0 Binary files /dev/null and b/git/cmd/git-upload-pack.exe differ diff --git a/git/cmd/git.exe b/git/cmd/git.exe new file mode 100644 index 0000000000000000000000000000000000000000..ef49cb83112e0e7334390a58d40515894c31deb7 Binary files /dev/null and b/git/cmd/git.exe differ diff --git a/git/cmd/scalar.exe b/git/cmd/scalar.exe new file mode 100644 index 0000000000000000000000000000000000000000..ef49cb83112e0e7334390a58d40515894c31deb7 Binary files /dev/null and b/git/cmd/scalar.exe differ diff --git a/git/cmd/start-ssh-agent.cmd b/git/cmd/start-ssh-agent.cmd new file mode 100644 index 0000000000000000000000000000000000000000..67b40d0f71d2b24322442670f45cfc131208ead0 --- /dev/null +++ b/git/cmd/start-ssh-agent.cmd @@ -0,0 +1,83 @@ +@REM Do not use "echo off" to not affect any child calls. + +@REM Enable extensions, the `verify` call is a trick from the setlocal help +@VERIFY other 2>nul +@SETLOCAL EnableDelayedExpansion +@IF ERRORLEVEL 1 ( + @ECHO Unable to enable extensions + @GOTO failure +) + +@REM Start the ssh-agent if needed by git +@FOR %%i IN ("git.exe") DO @SET GIT=%%~$PATH:i +@IF EXIST "%GIT%" @( + @REM Get the ssh-agent executable + @FOR %%i IN ("ssh-agent.exe") DO @SET SSH_AGENT=%%~$PATH:i + @IF NOT EXIST "%SSH_AGENT%" @( + @FOR %%s IN ("%GIT%") DO @SET GIT_DIR=%%~dps + @FOR %%s IN ("!GIT_DIR!") DO @SET GIT_DIR=!GIT_DIR:~0,-1! + @FOR %%s IN ("!GIT_DIR!") DO @SET GIT_ROOT=%%~dps + @FOR %%s IN ("!GIT_ROOT!") DO @SET GIT_ROOT=!GIT_ROOT:~0,-1! + @FOR /D %%s in ("!GIT_ROOT!\usr\bin\ssh-agent.exe") DO @SET SSH_AGENT=%%~s + @IF NOT EXIST "!SSH_AGENT!" @GOTO ssh-agent-done + ) + @REM Get the ssh-add executable + @FOR %%s IN ("!SSH_AGENT!") DO @SET BIN_DIR=%%~dps + @FOR %%s in ("!BIN_DIR!") DO @SET BIN_DIR=!BIN_DIR:~0,-1! + @FOR /D %%s in ("!BIN_DIR!\ssh-add.exe") DO @SET SSH_ADD=%%~s + @IF NOT EXIST "!SSH_ADD!" @GOTO ssh-agent-done + @REM Check if the agent is running + @FOR /f "tokens=1-2" %%a IN ('tasklist /fi "imagename eq ssh-agent.exe"') DO @( + @ECHO %%b | @FINDSTR /r /c:"[0-9][0-9]*" > NUL + @IF "!ERRORLEVEL!" == "0" @( + @SET SSH_AGENT_PID=%%b + ) else @( + @REM Unset in the case a user kills the agent while a session is open + @REM needed to remove the old files and prevent a false message + @SET SSH_AGENT_PID= + ) + ) + @REM Connect up the current ssh-agent + @IF [!SSH_AGENT_PID!] == [] @( + @ECHO Removing old ssh-agent sockets + @FOR %%s IN (%USERPROFILE%\.ssh\agent\s.*) DO @DEL /q "%%s" 2>nul + ) ELSE @( + @ECHO Found ssh-agent at !SSH_AGENT_PID! + @FOR %%s IN (%USERPROFILE%\.ssh\agent\s.*) DO @( + @SET SSH_AUTH_SOCK=%%s + @SET SSH_AUTH_SOCK=!SSH_AUTH_SOCK:%USERPROFILE%=~! + @SET SSH_AUTH_SOCK=!SSH_AUTH_SOCK:\=/! + ) + @IF NOT [!SSH_AUTH_SOCK!] == [] @( + @ECHO Found ssh-agent socket at !SSH_AUTH_SOCK! + ) ELSE ( + @ECHO Failed to find ssh-agent socket + @SET SSH_AGENT_PID= + ) + ) + @REM See if we have the key + @"!SSH_ADD!" -l 1>NUL 2>NUL + @SET result=!ERRORLEVEL! + @IF NOT !result! == 0 @( + @IF !result! == 2 @( + @ECHO | @SET /p=Starting ssh-agent: + @FOR /f "tokens=1-2 delims==;" %%a IN ('"!SSH_AGENT!"') DO @( + @IF NOT [%%b] == [] @SET %%a=%%b + ) + @ECHO. done + ) + @"!SSH_ADD!" + @ECHO. + ) +) + +:ssh-agent-done +:failure + +@ENDLOCAL & @SET "SSH_AUTH_SOCK=%SSH_AUTH_SOCK%" ^ + & @SET "SSH_AGENT_PID=%SSH_AGENT_PID%" + +@ECHO %cmdcmdline% | @FINDSTR /l "\"\"" >NUL +@IF NOT ERRORLEVEL 1 @( + @CALL cmd %* +) diff --git a/git/cmd/start-ssh-pageant.cmd b/git/cmd/start-ssh-pageant.cmd new file mode 100644 index 0000000000000000000000000000000000000000..74b5651b777cf5f529483ecb018d1b215d8bfbfe --- /dev/null +++ b/git/cmd/start-ssh-pageant.cmd @@ -0,0 +1,63 @@ +@REM Do not use "echo off" to not affect any child calls. + +@REM The goal of this script is to simplify launching `ssh-pageant` at +@REM logon, typically by dropping a shortcut into the Startup folder, so +@REM that Pageant (the PuTTY authentication agent) will always be +@REM accessible. No attempt is made to load SSH keys, since this is +@REM normally handled directly by Pageant, and no interactive shell +@REM will be launched. +@REM +@REM The `ssh-pageant` utility is launched with the `-r` (reuse socket) +@REM option, to ensure that only a single running incarnation (per user) +@REM will be required... instead of launching a separate process for +@REM every interactive Git Bash session. A side effect of this selection +@REM is that the SSH_AUTH_SOCK environment variable *must* be set prior +@REM to running this script, with the value specifying a unix-style socket +@REM path, and needs to be consistent for all git-related processes. The +@REM easiest way to do this is to set a persistent USER environment +@REM variable, which (under Windows 7) can be done via Control Panel +@REM under System / Advanced System Settings. A typical value would look +@REM similar to: +@REM +@REM SSH_AUTH_SOCK=/tmp/.ssh-pageant-USERNAME +@REM + +@REM Enable extensions, the `verify` call is a trick from the setlocal help +@VERIFY other 2>nul +@SETLOCAL EnableDelayedExpansion +@IF ERRORLEVEL 1 ( + @ECHO Unable to enable extensions + @GOTO failure +) + +@REM Ensure that SSH_AUTH_SOCK is set +@if "x" == "x%SSH_AUTH_SOCK%" @( + @ECHO The SSH_AUTH_SOCK environment variable must be set prior to running this script. >&2 + @ECHO This is typically configured as a persistent USER variable, using a MSYS2 path for >&2 + @ECHO the ssh-pageant authentication socket as the value. Something similar to: >&2 + @ECHO. >&2 + @ECHO SSH_AUTH_SOCK=/tmp/.ssh-pageant-%USERNAME% >&2 + @GOTO failure +) + +@REM Start ssh-pageant if needed by git +@FOR %%i IN ("git.exe") DO @SET GIT=%%~$PATH:i +@IF EXIST "%GIT%" @( + @REM Get the ssh-pageant executable + @FOR %%i IN ("ssh-pageant.exe") DO @SET SSH_PAGEANT=%%~$PATH:i + @IF NOT EXIST "%SSH_PAGEANT%" @( + @FOR %%s IN ("%GIT%") DO @SET GIT_DIR=%%~dps + @FOR %%s IN ("!GIT_DIR!") DO @SET GIT_DIR=!GIT_DIR:~0,-1! + @FOR %%s IN ("!GIT_DIR!") DO @SET GIT_ROOT=%%~dps + @FOR %%s IN ("!GIT_ROOT!") DO @SET GIT_ROOT=!GIT_ROOT:~0,-1! + @FOR /D %%s in ("!GIT_ROOT!\usr\bin\ssh-pageant.exe") DO @SET SSH_PAGEANT=%%~s + @IF NOT EXIST "!SSH_PAGEANT!" @GOTO ssh-pageant-done + ) +) + +@REM Time to make the donuts! +@ECHO Starting ssh-pageant... +@FOR /f "usebackq tokens=1 delims=;" %%o in (`"%SSH_PAGEANT%" -qra %SSH_AUTH_SOCK%`) DO @ECHO %%o + +:ssh-pageant-done +:failure diff --git a/git/cmd/tig.exe b/git/cmd/tig.exe new file mode 100644 index 0000000000000000000000000000000000000000..60b38e1e048f94f0ed1118bc19230bd711c3ad24 Binary files /dev/null and b/git/cmd/tig.exe differ diff --git a/git/cmd/vcruntime140_1.dll b/git/cmd/vcruntime140_1.dll new file mode 100644 index 0000000000000000000000000000000000000000..2071f2814bbc6dac9a18b32c77ca86da09d579c3 Binary files /dev/null and b/git/cmd/vcruntime140_1.dll differ diff --git a/git/etc/DIR_COLORS b/git/etc/DIR_COLORS new file mode 100644 index 0000000000000000000000000000000000000000..8f795bc99cb94233186fb8e7a80a389d091dee5a --- /dev/null +++ b/git/etc/DIR_COLORS @@ -0,0 +1,207 @@ +# Configuration file for dircolors, a utility to help you set the +# LS_COLORS environment variable used by GNU ls with the --color option. + +# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copying and distribution of this file, with or without modification, +# are permitted provided the copyright notice and this notice are preserved. + +# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the +# slackware version of dircolors) are recognized but ignored. + +# Below are TERM entries, which can be a glob patterns, to match +# against the TERM environment variable to determine if it is colorizable. +TERM Eterm +TERM ansi +TERM *color* +TERM con[0-9]*x[0-9]* +TERM cons25 +TERM console +TERM cygwin +TERM dtterm +TERM gnome +TERM hurd +TERM jfbterm +TERM konsole +TERM kterm +TERM linux +TERM linux-c +TERM mlterm +TERM putty +TERM rxvt* +TERM screen* +TERM st +TERM terminator +TERM tmux* +TERM vt100 +TERM xterm* + +# Below are the color init strings for the basic file types. +# One can use codes for 256 or more colors supported by modern terminals. +# The default color codes use the capabilities of an 8 color terminal +# with some additional attributes as per the following codes: +# Attribute codes: +# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed +# Text color codes: +# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white +# Background color codes: +# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white +#NORMAL 00 # no color code at all +#FILE 00 # regular file: use no color at all +RESET 0 # reset to "normal" color +DIR 01;34 # directory +LINK 01;36 # symbolic link. (If you set this to 'target' instead of a + # numerical value, the color is as for the file pointed to.) +MULTIHARDLINK 00 # regular file with more than one link +FIFO 40;33 # pipe +SOCK 01;35 # socket +DOOR 01;35 # door +BLK 40;33;01 # block device driver +CHR 40;33;01 # character device driver +ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ... +MISSING 00 # ... and the files they point to +SETUID 37;41 # file that is setuid (u+s) +SETGID 30;43 # file that is setgid (g+s) +CAPABILITY 30;41 # file with capability +STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) +OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky +STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable + +# This is for files with execute permission: +EXEC 01;32 + +# List any file extensions like '.gz' or '.tar' that you would like ls +# to colorize below. Put the extension, a space, and the color init string. +# (and any comments you want to add after a '#') + +# If you use DOS-style suffixes, you may want to uncomment the following: +#.cmd 01;32 # executables (bright green) +#.exe 01;32 +#.com 01;32 +#.btm 01;32 +#.bat 01;32 +# Or if you want to colorize scripts even if they do not have the +# executable bit actually set. +#.sh 01;32 +#.csh 01;32 + + # archives or compressed (bright red) +.tar 01;31 +.tgz 01;31 +.arc 01;31 +.arj 01;31 +.taz 01;31 +.lha 01;31 +.lz4 01;31 +.lzh 01;31 +.lzma 01;31 +.tlz 01;31 +.txz 01;31 +.tzo 01;31 +.t7z 01;31 +.zip 01;31 +.z 01;31 +.dz 01;31 +.gz 01;31 +.lrz 01;31 +.lz 01;31 +.lzo 01;31 +.xz 01;31 +.zst 01;31 +.tzst 01;31 +.bz2 01;31 +.bz 01;31 +.tbz 01;31 +.tbz2 01;31 +.tz 01;31 +.deb 01;31 +.rpm 01;31 +.jar 01;31 +.war 01;31 +.ear 01;31 +.sar 01;31 +.rar 01;31 +.alz 01;31 +.ace 01;31 +.zoo 01;31 +.cpio 01;31 +.7z 01;31 +.rz 01;31 +.cab 01;31 +.wim 01;31 +.swm 01;31 +.dwm 01;31 +.esd 01;31 + +# image formats +.jpg 01;35 +.jpeg 01;35 +.mjpg 01;35 +.mjpeg 01;35 +.gif 01;35 +.bmp 01;35 +.pbm 01;35 +.pgm 01;35 +.ppm 01;35 +.tga 01;35 +.xbm 01;35 +.xpm 01;35 +.tif 01;35 +.tiff 01;35 +.png 01;35 +.svg 01;35 +.svgz 01;35 +.mng 01;35 +.pcx 01;35 +.mov 01;35 +.mpg 01;35 +.mpeg 01;35 +.m2v 01;35 +.mkv 01;35 +.webm 01;35 +.webp 01;35 +.ogm 01;35 +.mp4 01;35 +.m4v 01;35 +.mp4v 01;35 +.vob 01;35 +.qt 01;35 +.nuv 01;35 +.wmv 01;35 +.asf 01;35 +.rm 01;35 +.rmvb 01;35 +.flc 01;35 +.avi 01;35 +.fli 01;35 +.flv 01;35 +.gl 01;35 +.dl 01;35 +.xcf 01;35 +.xwd 01;35 +.yuv 01;35 +.cgm 01;35 +.emf 01;35 + +# https://wiki.xiph.org/MIME_Types_and_File_Extensions +.ogv 01;35 +.ogx 01;35 + +# audio formats +.aac 00;36 +.au 00;36 +.flac 00;36 +.m4a 00;36 +.mid 00;36 +.midi 00;36 +.mka 00;36 +.mp3 00;36 +.mpc 00;36 +.ogg 00;36 +.ra 00;36 +.wav 00;36 + +# https://wiki.xiph.org/MIME_Types_and_File_Extensions +.oga 00;36 +.opus 00;36 +.spx 00;36 +.xspf 00;36 diff --git a/git/etc/bash.bashrc b/git/etc/bash.bashrc new file mode 100644 index 0000000000000000000000000000000000000000..28f5ba4184fc47476650a580c4906727c691b118 --- /dev/null +++ b/git/etc/bash.bashrc @@ -0,0 +1,69 @@ +# To the extent possible under law, the author(s) have dedicated all +# copyright and related and neighboring rights to this software to the +# public domain worldwide. This software is distributed without any warranty. +# You should have received a copy of the CC0 Public Domain Dedication along +# with this software. +# If not, see . + +# /etc/bash.bashrc: executed by bash(1) for interactive shells. + +# System-wide bashrc file + +# Check that we haven't already been sourced. +([[ -z ${CYG_SYS_BASHRC} ]] && CYG_SYS_BASHRC="1") || return + +# If not running interactively, don't do anything +[[ "$-" != *i* ]] && return + +# If started from sshd, make sure profile is sourced +if [[ -n "$SSH_CONNECTION" ]] && [[ "$PATH" != *:/usr/bin* ]]; then + source /etc/profile +fi + +# Warnings +unset _warning_found +for _warning_prefix in '' ${MINGW_PREFIX}; do + for _warning_file in ${_warning_prefix}/etc/profile.d/*.warning{.once,}; do + test -f "${_warning_file}" || continue + _warning="$(command sed 's/^/\t\t/' "${_warning_file}" 2>/dev/null)" + if test -n "${_warning}"; then + if test -z "${_warning_found}"; then + _warning_found='true' + echo + fi + if test -t 1 + then printf "\t\e[1;33mwarning:\e[0m\n${_warning}\n\n" + else printf "\twarning:\n${_warning}\n\n" + fi + fi + [[ "${_warning_file}" = *.once ]] && rm -f "${_warning_file}" + done +done +unset _warning_found +unset _warning_prefix +unset _warning_file +unset _warning + +# If MSYS2_PS1 is set, use that as default PS1; +# if a PS1 is already set and exported, use that; +# otherwise set a default prompt +# of user@host, MSYSTEM variable, and current_directory +[[ -n "${MSYS2_PS1}" ]] && export PS1="${MSYS2_PS1}" +# if we have the "High Mandatory Level" group, it means we're elevated +#if [[ -n "$(command -v getent)" ]] && id -G | grep -q "$(getent -w group 'S-1-16-12288' | cut -d: -f2)" +# then _ps1_symbol='\[\e[1m\]#\[\e[0m\]' +# else _ps1_symbol='\$' +#fi +case "$(declare -p PS1 2>/dev/null)" in +'declare -x '*) ;; # okay +*) + export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n'"${_ps1_symbol}"' ' + ;; +esac +unset _ps1_symbol + +# Uncomment to use the terminal colours set in DIR_COLORS +# eval "$(dircolors -b /etc/DIR_COLORS)" + +# Fixup git-bash in non login env +shopt -q login_shell || . /etc/profile.d/git-prompt.sh diff --git a/git/etc/docx2txt.config b/git/etc/docx2txt.config new file mode 100644 index 0000000000000000000000000000000000000000..44433535353df93ebc9656cf455fa7eb06727d63 --- /dev/null +++ b/git/etc/docx2txt.config @@ -0,0 +1,70 @@ +# # User controllable configuration parameters for docx2txt.pl +# +# Note: +# - Ensure that all configuration lines end with single comma (,). +# - Lines beginning with '#' are comments. +# + +# +# Specify the path to "unzip" command. +# +# Windows users should specify this path like +# +# 'C:\Cygwin\bin\unzip.exe' (With Windows native perl.exe) +# Or +# 'C:/Cygwin/bin/unzip.exe' (With Cygwin/Windows native perl.exe) +# +# Default : '/usr/bin/unzip' +# +config_unzip => '/usr/bin/unzip', + +# +# Specify the commandline option(s) to be supplied to the program specified in +# config_unzip, that allow silent extraction of specified file from zip archive +# to console/standard output/pipe. +# +# Default : '-p' (for unzip) +# +# config_unzip_opts => '-p', + +# +# How the newline should be in output text file - "\n" or "\r\n". +# +# Default : "\n" +# +# config_newLine => "\n", + +# +# Line width to use for short line (single line paragraph) justifiction. +# +# Default : 80 +# +# config_lineWidth => 80, + +# +# Show hyperlink alongside linked text - [yY/nN] +# +# Note: Even if this option is enabled, hyperlinks will be shown only if +# hyperlink differs from the linked text. +# +# Default : N +# +config_showHyperLink => "Y", + +# +# Directory for creation of temporary file. +# +# In case input is provided via STDIN (standard input), it is first stored in a +# temporary file and then further processing is done using that file. +# Same path specification rules apply here as in case of config_unzip. +# +# Default : "/tmp" (Non-Windows OSes), Environment variable "TEMP" (Windows) +# +# config_tempDir => "/path/to/your/temp/directory", + +# +# Approximate mapping of twips to character for layout purpose. +# +# Default : 120 +# +config_twipsPerChar => 240, diff --git a/git/etc/fstab b/git/etc/fstab new file mode 100644 index 0000000000000000000000000000000000000000..738f742071f24fa87a120b7d4281ad9573a484ac --- /dev/null +++ b/git/etc/fstab @@ -0,0 +1,6 @@ +# For a description of the file format, see the Users Guide +# https://cygwin.com/cygwin-ug-net/using.html#mount-table + +# DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path +none / cygdrive binary,posix=0,noacl,user 0 0 +none /tmp usertemp binary,posix=0,noacl 0 0 diff --git a/git/etc/gitattributes b/git/etc/gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..bd76ea3fda204d12a5a933ab22aa1df29e7bf800 --- /dev/null +++ b/git/etc/gitattributes @@ -0,0 +1,23 @@ +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.docm diff=astextplain +*.DOCM diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.dotx diff=astextplain +*.DOTX diff=astextplain +*.dotm diff=astextplain +*.DOTM diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain +*.ods diff=astextplain +*.ODS diff=astextplain +*.odf diff=astextplain +*.ODF diff=astextplain +*.odt diff=astextplain +*.ODT diff=astextplain + diff --git a/git/etc/gitconfig b/git/etc/gitconfig new file mode 100644 index 0000000000000000000000000000000000000000..0871f4b2cc7d0eed39c99a7586f13c649bb96716 --- /dev/null +++ b/git/etc/gitconfig @@ -0,0 +1,20 @@ +[core] + symlinks = false + autocrlf = true + fscache = true +[color] + interactive = true + ui = auto +[help] + format = html +[diff "astextplain"] + textconv = astextplain +[rebase] + autosquash = true +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true +[credential] + helper = helper-selector diff --git a/git/etc/inputrc b/git/etc/inputrc new file mode 100644 index 0000000000000000000000000000000000000000..5c3bdb6e8562a5ef604d1f460fad4946ccad9803 --- /dev/null +++ b/git/etc/inputrc @@ -0,0 +1,82 @@ +# none, visible or audible +set bell-style visible + +# Ask before displaying >40 items +# Since $WINDIR $PATH var can be in $PATH, this could list +# all window executables in C:\WINDOWS +set completion-query-items 40 + +# Ignore case for the command-line-completion functionality +# on: default on a Windows style console +# off: default on a *nix style console +set completion-ignore-case on + +# disable/enable 8bit input +set input-meta on +set output-meta on +set convert-meta off + +# visible-stats +# Append a mark according to the file type in a listing +set visible-stats off +set mark-directories on +set mark-symlinked-directories on + +# Beep first, show all only upon double-Tab +set show-all-if-ambiguous off + +# MSYSTEM is emacs based +$if mode=emacs + # Common to Console & RXVT + "\e[2;2~": paste-from-clipboard # Shift-Insert + "\e[5~": beginning-of-history # Page up + "\e[6~": end-of-history # Page down + + # Mintty + "\e[1;5D": "\eOD" # Ctrl-Left + "\e[1;5C": "\eOC" # Ctrl-Right + "\e[1;5A": "\eOA" # Ctrl-Up + "\e[1;5B": "\eOB" # Ctrl-Down + "\e[1;3D": "\e\e[D" # Alt-Left + "\e[1;3C": "\e\e[C" # Alt-Right + + "\e[Z": complete # Shift-Tab + + $if term=msys # RXVT + "\e[7~": beginning-of-line # Home Key + "\e[8~": end-of-line # End Key + "\e[11~": display-shell-version # F1 + "\e[15~": re-read-init-file # F5 + "\e[12~": "Function Key 2" + "\e[13~": "Function Key 3" + "\e[14~": "Function Key 4" + "\e[17~": "Function Key 6" + "\e[18~": "Function Key 7" + "\e[19~": "Function Key 8" + "\e[20~": "Function Key 9" + "\e[21~": "Function Key 10" + $else + # Eh, normal Console is not really cygwin anymore, is it? Using 'else' instead. -mstormo + # $if term=cygwin # Console + "\e[1~": beginning-of-line # Home Key + "\e[4~": end-of-line # End Key + "\e[3~": delete-char # Delete Key + "\e[1;5D": backward-word # Ctrl-Left + "\e[1;5C": forward-word # Ctrl-Right + "\e\e[C": forward-word # Alt-Right + "\e\e[D": backward-word # Alt-Left + "\e[17~": "Function Key 6" + "\e[18~": "Function Key 7" + "\e[19~": "Function Key 8" + "\e[20~": "Function Key 9" + "\e[21~": "Function Key 10" + "\e[23~": "Function Key 11" + $endif + + $if term=cygwin + "\e[A": previous-history # Cursor Up + "\e[B": next-history # Cursor Down + "\e[C": forward-char # Cursor Right + "\e[D": backward-char # Cursor Left + $endif +$endif diff --git a/git/etc/msystem b/git/etc/msystem new file mode 100644 index 0000000000000000000000000000000000000000..835e0a735ad8f1317fd41cbbdec7b5a289eb7503 --- /dev/null +++ b/git/etc/msystem @@ -0,0 +1,27 @@ +# MSYSTEM Environment Information +# Copyright (C) 2016 Renato Silva +# Licensed under public domain + +# Once sourced, this script provides common information associated with the +# current MSYSTEM. For example, the compiler architecture and host type. + +# The MSYSTEM_ prefix is used for avoiding too generic names. For example, +# makepkg is sensitive to the value of CARCH, so MSYSTEM_CARCH is defined +# instead. The MINGW_ prefix does not influence makepkg-mingw variables and +# is not used for the MSYS shell. + +export MSYSTEM="${MSYSTEM:-MSYS}" + +unset MSYSTEM_PREFIX +unset MSYSTEM_CARCH +unset MSYSTEM_CHOST + +unset MINGW_CHOST +unset MINGW_PREFIX +unset MINGW_PACKAGE_PREFIX + +if [ -e "/etc/msystem.d/${MSYSTEM}" ]; then + source "/etc/msystem.d/${MSYSTEM}" +else + source "/etc/msystem.d/MSYS" +fi diff --git a/git/etc/nanorc b/git/etc/nanorc new file mode 100644 index 0000000000000000000000000000000000000000..36b0875a71959990cc69f874ddce82b1dc9bad26 --- /dev/null +++ b/git/etc/nanorc @@ -0,0 +1,353 @@ +## Sample initialization file for GNU nano. +## +## For the options that take parameters, the default value is shown. +## Other options are unset by default. To make sure that an option +## is disabled, you can use "unset