From e612bc5d79f3ac78b6cc9815817ac5be41f4389a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 9 Apr 2020 11:23:57 -0300 Subject: [PATCH] Format fish config files according to fish_indent. --- fish/.config/fish/conf.d/developer.fish | 12 ++++++------ fish/.config/fish/conf.d/text_editor.fish | 2 +- fish/.config/fish/conf.d/utilities.fish | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fish/.config/fish/conf.d/developer.fish b/fish/.config/fish/conf.d/developer.fish index 8f30558..cf208f0 100644 --- a/fish/.config/fish/conf.d/developer.fish +++ b/fish/.config/fish/conf.d/developer.fish @@ -21,7 +21,7 @@ alias maketmp='make BUILD_DIR=/tmp/(basename (pwd))' alias cargotmp='env CARGO_TARGET_DIR=/tmp/cargo/(basename (pwd)) cargo' function statusgit --argument show \ ---description "Show git status for all directories in the current directory. Requires omf." + --description "Show git status for all directories in the current directory. Requires omf." if test -z $show set show_status false else @@ -38,14 +38,14 @@ function statusgit --argument show \ for dir in ./*/ cd "$dir" - + if git_is_repo set final 0 - + set_color -o printf "$dir is:\n" set_color normal - + if git_is_dirty printf " dirty\n" set final 1 @@ -69,9 +69,9 @@ function statusgit --argument show \ git status printf "\n" end - + end - + cd - end end diff --git a/fish/.config/fish/conf.d/text_editor.fish b/fish/.config/fish/conf.d/text_editor.fish index 72a9c0b..8243343 100644 --- a/fish/.config/fish/conf.d/text_editor.fish +++ b/fish/.config/fish/conf.d/text_editor.fish @@ -14,6 +14,6 @@ alias clem='emacsclient -n' alias temacs="emacs -nw" function mdbat --argument-names file - mdcat $file | bat -p + mdcat $file | bat -p end diff --git a/fish/.config/fish/conf.d/utilities.fish b/fish/.config/fish/conf.d/utilities.fish index ff83108..29467bb 100644 --- a/fish/.config/fish/conf.d/utilities.fish +++ b/fish/.config/fish/conf.d/utilities.fish @@ -18,11 +18,11 @@ alias lla='ls -lA' alias la='ls -A' function rmstar --description "Remove starship prompt." - alias fish_prompt='echo (pwd) "> "' + alias fish_prompt='echo (pwd) "> "' end function addstar --description "Add starship prompt back." - source ~/.config/fish/functions/fish_prompt.fish + source ~/.config/fish/functions/fish_prompt.fish end alias pre='cd ../' @@ -34,14 +34,14 @@ alias rgmod='lsmod | rg -i' alias rgps='ps aux | rg -i' function randpw -a digits \ ---description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer." - openssl rand -base64 $digits | wl-copy + --description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer." + openssl rand -base64 $digits | wl-copy end function pdfunlock --description "Unlocks all PDF files in a directory." # command taken from https://mandrivausers.org/index.php?/topic/79354-saving-pdf-file-without-password-solved/ echo "Password: $argv[1]" - + mkdir -p unlocked for file in *.pdf rm -f "unlocked/$file"