summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorShubham Saini <pryr@pryr.xyz>2021-02-27 12:21:10 +0000
committerShubham Saini <pryr@pryr.xyz>2021-02-27 12:21:10 +0000
commit73be3bb4f31c077fd23982052de41ac555ee4585 (patch)
tree4c7a0ef17c8628319a8823f599825e5421a800fb /zsh
parent3c2bd026a3f2b2d97f32563b2b618644db4897ae (diff)
added website functions
Diffstat (limited to 'zsh')
-rwxr-xr-xzsh/.zshrc13
1 files changed, 10 insertions, 3 deletions
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
14export MANPAGER="nvim -c 'set ft=man' - " 14export MANPAGER="nvim -c 'set ft=man' - "
15 15
16#aliases 16#aliases
17alias ..="cd .." 17alias ..='cd ..'
18alias ...="cd ../../"
19alias l='ls --color=auto' 18alias l='ls --color=auto'
20alias ls='ls --color=auto' 19alias ls='ls --color=auto'
21alias ll='ls --color=auto -al' 20alias ll='ls --color=auto -al'
@@ -34,7 +33,6 @@ alias vim="nvim"
34alias sudo="sudo " 33alias sudo="sudo "
35alias mp3dl="youtube-dl -x --audio-format mp3" 34alias mp3dl="youtube-dl -x --audio-format mp3"
36alias o="xdg-open" 35alias o="xdg-open"
37alias webm="rm ~/src/site/dst/.files && ssg5 ~/src/site/src ~/src/site/dst 'pryr\'s website' 'https://pryr.xyz'"
38 36
39up() { 37up() {
40 curl -F "file=@$*" https://0x0.st | xclip -selection clipboard 38 curl -F "file=@$*" https://0x0.st | xclip -selection clipboard
@@ -52,6 +50,15 @@ rmdata() {
52 exiftool -overwrite_original -all= $* 50 exiftool -overwrite_original -all= $*
53} 51}
54 52
53generate() {
54 rm ~/src/site/dst/.files
55 ssg5 ~/src/site/src ~/src/site/dst "pryr's website" "https://pryr.xyz"
56}
57
58deploy() {
59 rsync --rsync-path "sudo -u www-data rsync" -avP --delete ~/src/site/dst/ rem:site/
60}
61
55# Enable colors and change prompt: 62# Enable colors and change prompt:
56autoload -U colors && colors 63autoload -U colors && colors
57fpath+=$HOME/.cache/zsh/pure 64fpath+=$HOME/.cache/zsh/pure