From 73be3bb4f31c077fd23982052de41ac555ee4585 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Sat, 27 Feb 2021 17:51:10 +0530 Subject: added website functions --- zsh/.zshrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index f1d4e40..8894393 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -14,8 +14,7 @@ export XDG_CURRENT_DESKTOP=sway export MANPAGER="nvim -c 'set ft=man' - " #aliases -alias ..="cd .." -alias ...="cd ../../" +alias ..='cd ..' alias l='ls --color=auto' alias ls='ls --color=auto' alias ll='ls --color=auto -al' @@ -34,7 +33,6 @@ alias vim="nvim" alias sudo="sudo " alias mp3dl="youtube-dl -x --audio-format mp3" alias o="xdg-open" -alias webm="rm ~/src/site/dst/.files && ssg5 ~/src/site/src ~/src/site/dst 'pryr\'s website' 'https://pryr.xyz'" up() { curl -F "file=@$*" https://0x0.st | xclip -selection clipboard @@ -52,6 +50,15 @@ rmdata() { exiftool -overwrite_original -all= $* } +generate() { + rm ~/src/site/dst/.files + ssg5 ~/src/site/src ~/src/site/dst "pryr's website" "https://pryr.xyz" +} + +deploy() { + rsync --rsync-path "sudo -u www-data rsync" -avP --delete ~/src/site/dst/ rem:site/ +} + # Enable colors and change prompt: autoload -U colors && colors fpath+=$HOME/.cache/zsh/pure -- cgit v1.2.3