From 3b26ffea20618394be7fa88a8e02239f719295d0 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 6 Oct 2020 23:11:50 +0300 Subject: zsh shortcut to compile sass on file change --- dotfiles/.config/zsh/shortcuts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dotfiles/.config/zsh') 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" -- cgit v1.2.3