1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-07-25 16:29:41 +01:00
Files
.github
assets
diagnostics
doc
examples
src
tests
benchmarks
examples
scripts
snapshots
syntax-tests
highlighted
source
ARM Assembly
ASP
AWK
ActionScript
Apache
AppleScript
AsciiDoc
Assembly (x86_64)
Bash
Batch
BibTeX
C
C-Sharp
CMake
CSS
CSV
Clojure
Cpp
CpuInfo
Crystal
D
Dart
Diff
Dockerfile
DotENV
Elixir
Elm
Email
Erlang
EtcGroup
Fish
Fstab
GLSL
Git Attributes
Git Config
LICENSE.md
text.gitconfig
Git Ignore
Go
GraphQL
Graphviz DOT
Groovy
HTML
Haskell
Hosts
INI
JSON
Java
JavaScript
Jinja2
Julia
Kotlin
Less
Lisp
Lua
MATLAB
Makefile
Manpage
Markdown
MemInfo
Ninja
OCaml
Objective-C
Objective-C++
PHP
Pascal
Passwd
Perl
Plaintext
PowerShell
Protocol Buffer
PureScript
Python
QML
R
Regular Expression
RequirementsTXT
Ruby
Ruby Haml
Ruby On Rails
Rust
SCSS
SLS
SML
SQL
SSH Config
SSHD Config
Sass
Scala
Svelte
Swift
TOML
Tcl
TeX
Terraform
Textile
TypeScript
Vue
XML
YAML
nginx
nim
nix
orgmode
reStructuredText
compare_highlighted_versions.py
create_highlighted_versions.py
regression_test.sh
update.sh
.gitattributes
assets.rs
integration_tests.rs
no_duplicate_extensions.rs
snapshot_tests.rs
tester.rs
.gitignore
.gitmodules
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
build.rs
bat/tests/syntax-tests/source/Git Config/text.gitconfig
Martin Nordholts 68d525cd8b Don't add artificial newline to last line if --style=plain
This fixes .

Note however, that using a pager such as less will add a newline itself.
So to actually not print a newline for such files, you need to either
disable paging:

  bat --style=plain --paging=never no-newline-at-end-of-file.txt

or use a "pager" that does not add a newline:

  bat --style=plain --pager=cat no-newline-at-end-of-file.txt

Note that we also update syntax tests file since a bunch of them had
missing newlines on the last lines.
2020-12-19 10:32:50 +01:00

108 lines
2.2 KiB
Plaintext

[alias]
br = branch
branch = branch -a
c = clone --recursive
ci = commit
cl = clone
co = checkout
contributors = shortlog --summary --numbered
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
remote = remote -v
st = status
tag = tag -l
[apply]
whitespace = fix
[color]
ui = true
[color "branch"]
current = yellow
local = yellow
remote = green
[color "diff"]
commit = yellow bold
frag = magenta bold
meta = yellow
new = green bold
old = red bold
whitespace = red reverse
[color "diff-highlight"]
newHighlight = green bold 22
newNormal = green bold
oldHighlight = red bold 52
oldNormal = red bold
[color "status"]
added = green
changed = yellow
untracked = cyan
[commit]
gpgsign = true
[core]
editor = /usr/bin/vim
# global exclude
excludesfile = /home/frank/.config/git/ignore
pager = delta
; broken on old machines
untrackedCache = true
[credential]
helper = store
[delta]
features = line-numbers decorations
max-line-length = 1024
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-decoration-style = none
file-style = bold yellow
syntax-theme = gruvbox
[diff]
submodule = diff
algorithm = histogram
renames = copies
[difftool]
prompt = false
[difftool "wrapper"]
binary = true
cmd = git-difftool-wrapper \"$LOCAL\" \"$REMOTE\"
[diff "pdfconv"]
textconv = pdftohtml -stdout
[fetch]
negotiationAlgorithm = skipping
parallel = 0
[help]
autocorrect = 1
[index]
version = 4
[interactive]
diffFilter = delta --color-only
[merge]
log = true
[protocol]
version = 2
[pull]
rebase = true
[push]
default = current
recurseSubmodules = on-demand
[rebase]
autoStash = true
[rerere]
autoUpdate = true
enabled = true
[sequence]
editor = interactive-rebase-tool
[submodule]
fetchJobs = 0
[tag]
gpgSign = true
sort = -version:refname
[url "git@gist.github.com:"]
insteadOf = gist:
pushInsteadOf = https://gist.github.com/
[url "git@github.com:"]
insteadOf = gh:
pushInsteadOf = https://github.com/
[user]
email = f.nord@example.com
name = Frank Nord
signingkey = AAAAAAAAAAAAAAAA