diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-10-06 23:11:50 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-10-06 23:11:50 +0300 |
commit | 3b26ffea20618394be7fa88a8e02239f719295d0 (patch) | |
tree | 15851ee1d5365af46ae347080224022b4ac053c1 /dotfiles | |
parent | 43e860a725a238039ac4d7f07de38ffd86b812a1 (diff) | |
download | swayrice-3b26ffea20618394be7fa88a8e02239f719295d0.tar.gz swayrice-3b26ffea20618394be7fa88a8e02239f719295d0.zip |
zsh shortcut to compile sass on file change
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.config/zsh/shortcuts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 6081b30..4da91ec 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -11,6 +11,11 @@ alias trans="trans -v -pager='less -R'" alias op="xdg-open" corona() { curl -s https://corona-stats.online/$1 ;} # It's corona time wintitle() { printf "\033]2;%s\a" "$1";} +sass-watch() { + while inotifywait -q -e create -e modify sass; do + sassc $1 $2 + done +} # Generic shortcuts alias music="ncmpcpp" |