zsh:autoload:*: Add shebang & remove vim-modeline

By adding a shebang to the scripts they can be executed directly without
an interactive shell. The shebang also makes vims modeline that only set
the filetype obsolete.
This commit is contained in:
2021-07-10 00:59:25 +02:00
parent f2c84fe82c
commit 4fedae1a4c
5 changed files with 5 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
#!/usr/bin/zsh
## Author: druckdev
## Created: 2019-11-28
##
@@ -36,5 +37,3 @@ style="{${style%,}}"
# Overwrite the argument of the style flag with the parsed format file.
set -- "${@[1, $idx - 1]}" "${prefix}${style}" "${@[$idx + 1, -1]}"
command clang-format "$@"
# vim: ft=zsh

View File

@@ -1,3 +1,4 @@
#!/usr/bin/zsh
## Author: druckdev
## Created: 2020-09-13
##
@@ -29,5 +30,3 @@ for arg in "$@"; do
separator="\n"
done
# vim: ft=zsh

View File

@@ -1,3 +1,4 @@
#!/usr/bin/zsh
## Author: druckdev
## Created: 2020-08-28
##
@@ -121,5 +122,3 @@ fi
git log "$formatshort" --graph "$dateshort" --color=always "$@" \
| fzf "${fzf_args[@]}"
return 0
# vim: ft=zsh

View File

@@ -1,3 +1,4 @@
#!/usr/bin/zsh
## Author: druckdev
## Created: 2021-05-14
##
@@ -121,5 +122,3 @@ fi
git stash list "$formatshort" --color=always "$@" \
| fzf "${fzf_args[@]}"
return 0
# vim: ft=zsh

View File

@@ -1,3 +1,4 @@
#!/usr/bin/zsh
## Author: druckdev
## Created: 2019-10-21
##
@@ -83,5 +84,3 @@ for dir in ${(@f)dirs}; do
command $LS_COMMAND "$@" $all_flag -- "$dir"
separator="\n"
done
# vim: ft=zsh