summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/fish/config.fish1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 9737c69..15bbaf7 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -39,6 +39,7 @@ alias todo='$EDITOR (find "$SYNCDIR" -maxdepth 5 -type f -name 'todo.txt')'
alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" --layout reverse | xargs -r -I{} "$EDITOR" "{}"'
# Functions
+function backupdir; tar -cf - "$argv" -P | pv -s (du -sb "$argv" | awk '{print $1}') | gzip > "$argv"_backup-(date +%F-%H%M).tar.gz ; end
function cheat; curl -s "http://cheat.sh/$argv"; end
function fractodec; math -s2 "$argv" ; end
function hextodec; math "0x$argv" ; end