mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 13:50:53 +00:00
formatters, go packages and examples
This commit is contained in:
6
config/exports-secret.example
Normal file
6
config/exports-secret.example
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# This file is secret and wont be added to the git repo.
|
||||||
|
|
||||||
|
export GITLAB_API_TOKEN=""
|
||||||
|
export GREN_GITHUB_TOKEN=""
|
||||||
@@ -133,6 +133,12 @@ function section_dotfiles
|
|||||||
USAGE_PREFIX="$SCRIPT dotfiles"
|
USAGE_PREFIX="$SCRIPT dotfiles"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
fmt)
|
||||||
|
msg_ok "Running all formatters"
|
||||||
|
$0 dotfiles yamlfmt
|
||||||
|
$0 dotfiles shfmt
|
||||||
|
msg_done "...done!"
|
||||||
|
;;
|
||||||
reset_all)
|
reset_all)
|
||||||
msg_ok "Running all reset commands"
|
msg_ok "Running all reset commands"
|
||||||
$0 dotfiles reset_nvim
|
$0 dotfiles reset_nvim
|
||||||
@@ -174,7 +180,8 @@ function section_dotfiles
|
|||||||
msg_done "🎉 dotfiles have been shfmt formatted!"
|
msg_done "🎉 dotfiles have been shfmt formatted!"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
menu_section "$USAGE_PREFIX" "reset_all | reset_nvim | yamlfmt | shfmt"
|
menu_section "$USAGE_PREFIX" "fmt | reset_all | reset_nvim | yamlfmt | shfmt"
|
||||||
|
menu_item "fmt" "Run all formatters"
|
||||||
menu_item "reset_all" "Reset everything, runs all configured reset actions"
|
menu_item "reset_all" "Reset everything, runs all configured reset actions"
|
||||||
menu_item "reset_nvim" "Resets nvim. Deletes caches, removes nvim folders and relinks nvim folders"
|
menu_item "reset_nvim" "Resets nvim. Deletes caches, removes nvim folders and relinks nvim folders"
|
||||||
menu_item "yamlfmt" "Run yamlfmt to all dotfiles, which are in our control"
|
menu_item "yamlfmt" "Run yamlfmt to all dotfiles, which are in our control"
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ else
|
|||||||
github.com/skx/sysbox@latest
|
github.com/skx/sysbox@latest
|
||||||
github.com/dotzero/git-profile@latest
|
github.com/dotzero/git-profile@latest
|
||||||
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
||||||
|
github.com/ericchiang/pup@latest
|
||||||
|
github.com/suntong/html2md@latest
|
||||||
)
|
)
|
||||||
|
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user