This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract version string from file. Especially useful when single-sourcing | |
# version, e.g. in version.py in python. | |
# content of version.txt: version = "1.0.0" | |
# the following command pipes the content of version.txt to grep, extracts the | |
# first line containing the string 'version', uses awk to split the input at | |
# '=' and discards the key, then removes double quotes and trims whitespaces. | |
# | |
# output for example: 1.0.0 | |
# | |
# replace 'version.txt' with your file, 'version' with your key, -F= with your |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# core {{{ | |
[core] | |
editor = code --wait | |
pager=less -x4 | |
sshCommand = C:/Windows/System32/OpenSSH/ssh.exe | |
#}}} | |
# user {{{ | |
[user] | |
name = <Name> |