Ensure files end with a new line

This commit is contained in:
Fernando Schauenburg 2024-07-14 12:54:15 +02:00
parent ab7d4933aa
commit 13fa12c5c3
73 changed files with 1 additions and 72 deletions

1
.gitattributes vendored
View file

@ -1,2 +1 @@
ssh/config filter=git-crypt diff=git-crypt ssh/config filter=git-crypt diff=git-crypt

1
.gitignore vendored
View file

@ -9,4 +9,3 @@ config/zsh/.zcompcache
config/zsh/.zcompdump config/zsh/.zcompdump
config/zsh/.zsh_sessions config/zsh/.zsh_sessions
config/iterm2 config/iterm2

View file

@ -24,4 +24,3 @@ repository.
[git-crypt]: https://github.com/AGWA/git-crypt [git-crypt]: https://github.com/AGWA/git-crypt
[gpg]: https://gnupg.org [gpg]: https://gnupg.org

View file

@ -24,4 +24,3 @@ cat <<EOF
37m  gYw  gYw   gYw   gYw   gYw   gYw   gYw   gYw   gYw  37m  gYw  gYw   gYw   gYw   gYw   gYw   gYw   gYw   gYw 
1;37m  gYw  gYw   gYw   gYw   gYw   gYw   gYw   gYw   gYw  1;37m  gYw  gYw   gYw   gYw   gYw   gYw   gYw   gYw   gYw 
EOF EOF

View file

@ -145,4 +145,3 @@ main() {
} }
main main

View file

@ -34,4 +34,3 @@ for i in $(seq 0 23); do
printf '%b%b%4d ' "$fg" "$bg" "$n" printf '%b%b%4d ' "$fg" "$bg" "$n"
done done
printf '%b\n' '\e[0m' printf '%b\n' '\e[0m'

View file

@ -16,4 +16,3 @@ BEGIN {
} }
printf "\n"; printf "\n";
} }

View file

@ -1,3 +1,2 @@
#!/bin/sh #!/bin/sh
env | sort | grep --color=always '=.*$' env | sort | grep --color=always '=.*$'

View file

@ -6,4 +6,3 @@ exec git config --get-regexp '^alias' \
| sed 's/^alias\.//' \ | sed 's/^alias\.//' \
| sed 's/ /\t= /' \ | sed 's/ /\t= /' \
| sort | sort

View file

@ -6,4 +6,3 @@ exec git shortlog --email --numbered --summary "$@" \
| awk '{$1=""; sub(" ", ""); print}' \ | awk '{$1=""; sub(" ", ""); print}' \
| awk -F'<' '!seen[$1]++' \ | awk -F'<' '!seen[$1]++' \
| awk -F'<' '!seen[$2]++' | awk -F'<' '!seen[$2]++'

View file

@ -26,4 +26,3 @@ exec git log --all \
| uniq -c \ | uniq -c \
| sort -n \ | sort -n \
| awk 'BEGIN {print "count\tfile"} {print $1 "\t" $2}' | awk 'BEGIN {print "count\tfile"} {print $1 "\t" $2}'

View file

@ -3,4 +3,3 @@
# List ignored files. # List ignored files.
# #
exec git ls-files --ignored --exclude-standard --others exec git ls-files --ignored --exclude-standard --others

View file

@ -6,4 +6,3 @@ set -e
git init git init
git commit --allow-empty -m "Initial commit" git commit --allow-empty -m "Initial commit"
git log --graph --pretty='%C(auto)%h%d %s %C(8) %ad' git log --graph --pretty='%C(auto)%h%d %s %C(8) %ad'

View file

@ -7,4 +7,3 @@ exec git log \
--graph \ --graph \
--pretty='%C(auto)%h%d %s %C(8) %ad' \ --pretty='%C(auto)%h%d %s %C(8) %ad' \
--simplify-by-decoration --simplify-by-decoration

View file

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
# Head as much as fits on screen # Head as much as fits on screen
exec head -n $(echo "$(tput lines) - 5" | bc) "$@" exec head -n $(echo "$(tput lines) - 5" | bc) "$@"

View file

@ -16,4 +16,3 @@ base64 -d <<EOF | gpg -d
%s %s
EOF EOF
' "$(gpg -c --cipher-algo AES256 -o - -- "$1" | base64)" ' "$(gpg -c --cipher-algo AES256 -o - -- "$1" | base64)"

View file

@ -1,3 +1,2 @@
#!/bin/sh #!/bin/sh
echo "$MANPATH" | tr -s ":" "\n" echo "$MANPATH" | tr -s ":" "\n"

View file

@ -6,4 +6,3 @@
exec curl -s https://ifconfig.co exec curl -s https://ifconfig.co
#exec curl -s https://ifconfig.me #exec curl -s https://ifconfig.me
#exec dig +short myip.opendns.com @resolver1.opendns.com #exec dig +short myip.opendns.com @resolver1.opendns.com

View file

@ -1,3 +1,2 @@
#!/bin/sh #!/bin/sh
exec curl -s ipinfo.io exec curl -s ipinfo.io

View file

@ -32,4 +32,3 @@ case "$1" in
"") error "volume required" ;; "") error "volume required" ;;
*) gen_fstab_entry "$1";; *) gen_fstab_entry "$1";;
esac esac

View file

@ -1,3 +1,2 @@
#!/bin/sh #!/bin/sh
echo "$PATH" | tr -s ":" "\n" echo "$PATH" | tr -s ":" "\n"

View file

@ -11,4 +11,3 @@ printf '%b\n' "\e[7mThis text has the reverse (tput rev) attribute.${reset}"
printf '%b\n' "\e[8mThis text has the invisible (tput invis) attribute.${reset}" printf '%b\n' "\e[8mThis text has the invisible (tput invis) attribute.${reset}"
printf '%b\n' "\e[9mThis text has the strikethrough (tput ?) attribute.${reset}" printf '%b\n' "\e[9mThis text has the strikethrough (tput ?) attribute.${reset}"
printf '%b\n' "\e[21mThis text has the double underline (tput ?) attribute.${reset}" printf '%b\n' "\e[21mThis text has the double underline (tput ?) attribute.${reset}"

View file

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
# Tail as much as fits on screen # Tail as much as fits on screen
exec tail -n $(echo "$(tput lines) - 5" | bc) "$@" exec tail -n $(echo "$(tput lines) - 5" | bc) "$@"

View file

@ -108,4 +108,3 @@ if __name__ == '__main__':
generate = generators[args.terminal] generate = generators[args.terminal]
print(generate(SOLARIZED, **theme)) print(generate(SOLARIZED, **theme))

View file

@ -30,4 +30,3 @@ main() {
} }
main "$@" main "$@"

View file

@ -53,4 +53,3 @@ show = "always"
# Quit if there is nothing else to escape. # Quit if there is nothing else to escape.
quit_on_last_cancel = true quit_on_last_cancel = true

View file

@ -94,4 +94,3 @@ good_to_bad_6 = "rgb(203, 166, 247)"
good_to_bad_7 = "rgb(250, 179, 135)" good_to_bad_7 = "rgb(250, 179, 135)"
good_to_bad_8 = "rgb(235, 160, 172)" good_to_bad_8 = "rgb(235, 160, 172)"
good_to_bad_9 = "rgb(243, 139, 168)" good_to_bad_9 = "rgb(243, 139, 168)"

View file

@ -94,4 +94,3 @@ good_to_bad_6 = "rgb(203, 166, 247)"
good_to_bad_7 = "rgb(250, 179, 135)" good_to_bad_7 = "rgb(250, 179, 135)"
good_to_bad_8 = "rgb(235, 160, 172)" good_to_bad_8 = "rgb(235, 160, 172)"
good_to_bad_9 = "rgb(243, 139, 168)" good_to_bad_9 = "rgb(243, 139, 168)"

View file

@ -76,4 +76,3 @@ execution = ":page_up"
[[verbs]] [[verbs]]
key = "ctrl-d" key = "ctrl-d"
execution = ":page_down" execution = ":page_down"

View file

@ -112,4 +112,3 @@
path = ~/.config/git/dev@schauenburg.me path = ~/.config/git/dev@schauenburg.me
[includeIf "gitdir:~/.local/src/"] [includeIf "gitdir:~/.local/src/"]
path = ~/.config/git/dev@schauenburg.me path = ~/.config/git/dev@schauenburg.me

View file

@ -41,4 +41,3 @@
plus-non-emph-style = syntax "#20303b" plus-non-emph-style = syntax "#20303b"
plus-emph-style = syntax "#2c5a66" plus-emph-style = syntax "#2c5a66"
plus-style = syntax "#20303b" plus-style = syntax "#20303b"

View file

@ -1,4 +1,3 @@
[user] [user]
name = Fernando Schauenburg name = Fernando Schauenburg
email = dev@schauenburg.me email = dev@schauenburg.me

View file

@ -23,4 +23,3 @@ Term=xterm-256color
ThemeFile=gruvbox-dark ThemeFile=gruvbox-dark
Transparency=off Transparency=off
Utmp=yes Utmp=yes

View file

@ -22,4 +22,3 @@ BoldBlue = #7AA2F7
BoldMagenta = #BB9AF7 BoldMagenta = #BB9AF7
BoldCyan = #7DCFFF BoldCyan = #7DCFFF
BoldWhite = #C0CAF5 BoldWhite = #C0CAF5

View file

@ -22,4 +22,3 @@ BoldBlue = #7aa2f7
BoldMagenta = #bb9af7 BoldMagenta = #bb9af7
BoldCyan = #7dcfff BoldCyan = #7dcfff
BoldWhite = #c0caf5 BoldWhite = #c0caf5

View file

@ -1,2 +1 @@
vim.bo.tabstop = 2 vim.bo.tabstop = 2

View file

@ -1,2 +1 @@
vim.bo.commentstring = '// %s' vim.bo.commentstring = '// %s'

View file

@ -1,2 +1 @@
vim.bo.commentstring = '// %s' vim.bo.commentstring = '// %s'

View file

@ -1,2 +1 @@
require("fschauen.util.options").set_gitcommit_buffer_options() require("fschauen.util.options").set_gitcommit_buffer_options()

View file

@ -16,4 +16,3 @@ vim.keymap.set('n', [[<localleader>']], [[:.s/"/'/g | nohl<cr>]], opts([[Replace
vim.keymap.set('n', [[<localleader>"]], [[:.s/'/"/g | nohl<cr>]], opts([[Replace: ' 󱦰 "]])) vim.keymap.set('n', [[<localleader>"]], [[:.s/'/"/g | nohl<cr>]], opts([[Replace: ' 󱦰 "]]))
vim.keymap.set('x', [[<localleader>']], [[:s/"/'/g | nohl<cr>]], opts([[Replace: " 󱦰 ']])) vim.keymap.set('x', [[<localleader>']], [[:s/"/'/g | nohl<cr>]], opts([[Replace: " 󱦰 ']]))
vim.keymap.set('x', [[<localleader>"]], [[:s/'/"/g | nohl<cr>]], opts([[Replace: ' 󱦰 "]])) vim.keymap.set('x', [[<localleader>"]], [[:s/'/"/g | nohl<cr>]], opts([[Replace: ' 󱦰 "]]))

View file

@ -1,4 +1,3 @@
vim.bo.tabstop = 2 vim.bo.tabstop = 2
vim.opt.formatoptions:append('t') -- wrap text on 'textwidth' vim.opt.formatoptions:append('t') -- wrap text on 'textwidth'
vim.opt.spell = true -- turn on spell checking vim.opt.spell = true -- turn on spell checking

View file

@ -1,2 +1 @@
vim.bo.tabstop = 2 vim.bo.tabstop = 2

View file

@ -1,3 +1,2 @@
vim.opt.foldmethod = 'indent' vim.opt.foldmethod = 'indent'
vim.opt.foldignore = '#' vim.opt.foldignore = '#'

View file

@ -1,2 +1 @@
vim.opt.tabstop = 2 vim.opt.tabstop = 2

View file

@ -1,3 +1,2 @@
vim.opt.formatoptions:append('t') -- wrap text on 'textwidth' vim.opt.formatoptions:append('t') -- wrap text on 'textwidth'
vim.opt.spell = true -- turn on spell checking vim.opt.spell = true -- turn on spell checking

View file

@ -1,2 +1 @@
vim.opt.foldmethod = 'marker' vim.opt.foldmethod = 'marker'

View file

@ -1,2 +1 @@
vim.opt.tabstop = 2 vim.opt.tabstop = 2

View file

@ -55,4 +55,4 @@
"vim-commentary": { "branch": "master", "commit": "f67e3e67ea516755005e6cccb178bc8439c6d402" }, "vim-commentary": { "branch": "master", "commit": "f67e3e67ea516755005e6cccb178bc8439c6d402" },
"vim-fugitive": { "branch": "master", "commit": "e7bf502a6ae492f42a91d231864e25630286319b" }, "vim-fugitive": { "branch": "master", "commit": "e7bf502a6ae492f42a91d231864e25630286319b" },
"virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" } "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" }
} }

View file

@ -229,4 +229,3 @@ M.config = function(--[[plugin]]_, --[[opts]]_)
end end
return M return M

View file

@ -1,2 +1 @@
*.spl *.spl

View file

@ -4,4 +4,3 @@ indent_width = 2
quote_style = "AutoPreferDouble" quote_style = "AutoPreferDouble"
call_parentheses = "NoSingleTable" call_parentheses = "NoSingleTable"
collapse_simple_statement = "Never" collapse_simple_statement = "Never"

View file

@ -260,4 +260,3 @@ Control-k: history-search-backward
Control-l: clear-screen Control-l: clear-screen
Control-a: beginning-of-line Control-a: beginning-of-line
Control-e: end-of-line Control-e: end-of-line

View file

@ -124,4 +124,3 @@ set -g pane-border-style fg=black
set -g pane-active-border-style fg=brightblack set -g pane-active-border-style fg=brightblack
set -g message-style fg=brightwhite,bg=black set -g message-style fg=brightwhite,bg=black
set -g message-command-style fg=yellow,bg=black set -g message-command-style fg=yellow,bg=black

View file

@ -105,4 +105,3 @@ if [ -n "$(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip')" ]; then
fi fi
unset xdisplay unset xdisplay
fi fi

View file

@ -28,4 +28,3 @@ stty stop undef
# Allow comments in interactive use. # Allow comments in interactive use.
setopt INTERACTIVE_COMMENTS setopt INTERACTIVE_COMMENTS

View file

@ -46,4 +46,3 @@ if command -v nvim >/dev/null 2>&1; then
vim="nvim" \ vim="nvim" \
vimdiff="nvim -d" vimdiff="nvim -d"
fi fi

View file

@ -20,4 +20,3 @@ function br {
# Shortcut to start neovim. # Shortcut to start neovim.
bindkey -s '^b' '^ubr\r' bindkey -s '^b' '^ubr\r'

View file

@ -71,4 +71,3 @@ bindkey -M menuselect 'G' end-of-history
# Page down/up. # Page down/up.
bindkey -M menuselect 'f' vi-forward-word bindkey -M menuselect 'f' vi-forward-word
bindkey -M menuselect 'b' vi-backward-word bindkey -M menuselect 'b' vi-backward-word

View file

@ -104,4 +104,3 @@ colors=(
export EZA_COLORS="${(pj.:.)colors}" export EZA_COLORS="${(pj.:.)colors}"
unset colors unset colors

View file

@ -7,4 +7,3 @@ case "$1" in
../*) (cd .. && mkdir -vp "${1#.}") && cd "$1" ;; ../*) (cd .. && mkdir -vp "${1#.}") && cd "$1" ;;
*) mkdir -vp "./$1" && cd "./$1";; *) mkdir -vp "./$1" && cd "./$1";;
esac esac

View file

@ -41,4 +41,3 @@ export FZF_CTRL_R_OPTS=--border-label='" History search "'
export FZF_ALT_C_OPTS=--border-label='" Change directory "' export FZF_ALT_C_OPTS=--border-label='" Change directory "'
unset fzf_colors fzf_bindings fzf_defaults unset fzf_colors fzf_bindings fzf_defaults

View file

@ -6,4 +6,3 @@ setopt HIST_IGNORE_ALL_DUPS # Don't add duplicates to history.
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history" HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/history"
HISTSIZE=1000000 HISTSIZE=1000000
SAVEHIST=1000000 SAVEHIST=1000000

View file

@ -76,4 +76,3 @@ else
bindkey -M isearch '^k' history-incremental-search-backward bindkey -M isearch '^k' history-incremental-search-backward
bindkey -M isearch '^y' accept-search bindkey -M isearch '^y' accept-search
fi fi

View file

@ -67,4 +67,3 @@ customize_man_pages() {
} }
customize_man_pages customize_man_pages

View file

@ -199,4 +199,3 @@ prompt_setup() {
} }
prompt_setup prompt_setup

View file

@ -78,4 +78,3 @@
# <Multi_key> <^> <^> <X> : "" # Superscript X (character to be punblished) # <Multi_key> <^> <^> <X> : "" # Superscript X (character to be punblished)
# <Multi_key> <^> <^> <Y> : "" # Superscript Y (character to be punblished) # <Multi_key> <^> <^> <Y> : "" # Superscript Y (character to be punblished)
# <Multi_key> <^> <^> <Z> : "" # Superscript Z (character to be punblished) # <Multi_key> <^> <^> <Z> : "" # Superscript Z (character to be punblished)

View file

@ -1,3 +1,2 @@
# Just find $ZDOTDIR here, everythng will be configured there. # Just find $ZDOTDIR here, everythng will be configured there.
export ZDOTDIR="${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}" export ZDOTDIR="${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}"

View file

@ -172,4 +172,3 @@ main() {
} }
main "$@" main "$@"

Binary file not shown.

View file

@ -4,4 +4,3 @@ DESTDIR="$HOME"
# Git user information. # Git user information.
GIT_USER="Fernando Schauenburg" GIT_USER="Fernando Schauenburg"
GIT_EMAIL="dev@schauenburg.me" GIT_EMAIL="dev@schauenburg.me"

View file

@ -394,4 +394,3 @@ main() {
} }
main "$@" main "$@"

View file

@ -31,4 +31,3 @@ xterm-256color|xterm with 256 colors and italic,
tmux-256color|tmux with 256 colors and italic, tmux-256color|tmux with 256 colors and italic,
sitm=\e[3m, ritm=\e[23m, sitm=\e[3m, ritm=\e[23m,
use=screen-256color, use=screen-256color,

View file

@ -12,4 +12,3 @@ GPG_TTY=$(tty) # Needed so we can decrypt from stdin.
export GPG_TTY export GPG_TTY
echo "$KEY" | base64 -d | gpg -d | git crypt unlock - echo "$KEY" | base64 -d | gpg -d | git crypt unlock -