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:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
## Author: druckdev
|
## Author: druckdev
|
||||||
## Created: 2019-11-28
|
## Created: 2019-11-28
|
||||||
##
|
##
|
||||||
@@ -36,5 +37,3 @@ style="{${style%,}}"
|
|||||||
# Overwrite the argument of the style flag with the parsed format file.
|
# Overwrite the argument of the style flag with the parsed format file.
|
||||||
set -- "${@[1, $idx - 1]}" "${prefix}${style}" "${@[$idx + 1, -1]}"
|
set -- "${@[1, $idx - 1]}" "${prefix}${style}" "${@[$idx + 1, -1]}"
|
||||||
command clang-format "$@"
|
command clang-format "$@"
|
||||||
|
|
||||||
# vim: ft=zsh
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
## Author: druckdev
|
## Author: druckdev
|
||||||
## Created: 2020-09-13
|
## Created: 2020-09-13
|
||||||
##
|
##
|
||||||
@@ -29,5 +30,3 @@ for arg in "$@"; do
|
|||||||
|
|
||||||
separator="\n"
|
separator="\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
# vim: ft=zsh
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
## Author: druckdev
|
## Author: druckdev
|
||||||
## Created: 2020-08-28
|
## Created: 2020-08-28
|
||||||
##
|
##
|
||||||
@@ -121,5 +122,3 @@ fi
|
|||||||
git log "$formatshort" --graph "$dateshort" --color=always "$@" \
|
git log "$formatshort" --graph "$dateshort" --color=always "$@" \
|
||||||
| fzf "${fzf_args[@]}"
|
| fzf "${fzf_args[@]}"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
# vim: ft=zsh
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
## Author: druckdev
|
## Author: druckdev
|
||||||
## Created: 2021-05-14
|
## Created: 2021-05-14
|
||||||
##
|
##
|
||||||
@@ -121,5 +122,3 @@ fi
|
|||||||
git stash list "$formatshort" --color=always "$@" \
|
git stash list "$formatshort" --color=always "$@" \
|
||||||
| fzf "${fzf_args[@]}"
|
| fzf "${fzf_args[@]}"
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
# vim: ft=zsh
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
## Author: druckdev
|
## Author: druckdev
|
||||||
## Created: 2019-10-21
|
## Created: 2019-10-21
|
||||||
##
|
##
|
||||||
@@ -83,5 +84,3 @@ for dir in ${(@f)dirs}; do
|
|||||||
command $LS_COMMAND "$@" $all_flag -- "$dir"
|
command $LS_COMMAND "$@" $all_flag -- "$dir"
|
||||||
separator="\n"
|
separator="\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
# vim: ft=zsh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user