mirror of https://github.com/ericonr/dotfiles.git
30 lines
675 B
Fish
30 lines
675 B
Fish
alias lk='ls -1'
|
|
alias kl='ls -1'
|
|
|
|
alias cp='cp --reflink=auto --sparse=always'
|
|
alias pre='cd ../'
|
|
|
|
alias weather='curl wttr.in/'
|
|
|
|
alias rgmod='lsmod | rg -i'
|
|
alias rgps='ps aux | rg -i'
|
|
|
|
#alias info='info --vi-keys'
|
|
|
|
function pdfunlock
|
|
# 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"
|
|
pdftk "$file" input_pw "$argv[1]" output "unlocked/$file"
|
|
if test $status = 0
|
|
echo "Unlocked: $file!"
|
|
else
|
|
echo "Problem unlocking: $file."
|
|
end
|
|
end
|
|
end
|
|
|