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'
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

View File

@ -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

View File

@ -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"