Format fish config files according to fish_indent.

This commit is contained in:
Érico Rolim 2020-04-09 11:23:57 -03:00
parent 791acb5ec0
commit e612bc5d79
3 changed files with 12 additions and 12 deletions

View File

@ -21,7 +21,7 @@ alias maketmp='make BUILD_DIR=/tmp/(basename (pwd))'
alias cargotmp='env CARGO_TARGET_DIR=/tmp/cargo/(basename (pwd)) cargo' alias cargotmp='env CARGO_TARGET_DIR=/tmp/cargo/(basename (pwd)) cargo'
function statusgit --argument show \ 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 if test -z $show
set show_status false set show_status false
else else
@ -38,14 +38,14 @@ function statusgit --argument show \
for dir in ./*/ for dir in ./*/
cd "$dir" cd "$dir"
if git_is_repo if git_is_repo
set final 0 set final 0
set_color -o set_color -o
printf "$dir is:\n" printf "$dir is:\n"
set_color normal set_color normal
if git_is_dirty if git_is_dirty
printf " dirty\n" printf " dirty\n"
set final 1 set final 1
@ -69,9 +69,9 @@ function statusgit --argument show \
git status git status
printf "\n" printf "\n"
end end
end end
cd - cd -
end end
end end

View File

@ -14,6 +14,6 @@ alias clem='emacsclient -n'
alias temacs="emacs -nw" alias temacs="emacs -nw"
function mdbat --argument-names file function mdbat --argument-names file
mdcat $file | bat -p mdcat $file | bat -p
end end

View File

@ -18,11 +18,11 @@ alias lla='ls -lA'
alias la='ls -A' alias la='ls -A'
function rmstar --description "Remove starship prompt." function rmstar --description "Remove starship prompt."
alias fish_prompt='echo (pwd) "> "' alias fish_prompt='echo (pwd) "> "'
end end
function addstar --description "Add starship prompt back." function addstar --description "Add starship prompt back."
source ~/.config/fish/functions/fish_prompt.fish source ~/.config/fish/functions/fish_prompt.fish
end end
alias pre='cd ../' alias pre='cd ../'
@ -34,14 +34,14 @@ alias rgmod='lsmod | rg -i'
alias rgps='ps aux | rg -i' alias rgps='ps aux | rg -i'
function randpw -a digits \ function randpw -a digits \
--description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer." --description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer."
openssl rand -base64 $digits | wl-copy openssl rand -base64 $digits | wl-copy
end end
function pdfunlock --description "Unlocks all PDF files in a directory." 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/ # command taken from https://mandrivausers.org/index.php?/topic/79354-saving-pdf-file-without-password-solved/
echo "Password: $argv[1]" echo "Password: $argv[1]"
mkdir -p unlocked mkdir -p unlocked
for file in *.pdf for file in *.pdf
rm -f "unlocked/$file" rm -f "unlocked/$file"