aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-12-20 21:23:27 -0700
committershmibs <shmibs@gmail.com>2014-12-20 21:23:27 -0700
commitffbebb7365eb83217b5edaa9ed2d8849e3686706 (patch)
tree5770c7d6be3064c6c7bb28d8ce5ca0b96b7c5fd2 /.zshrc
parent36c47ef68d6eea35609b9d71004d1b07a336b6fb (diff)
downloaddotfiles-ffbebb7365eb83217b5edaa9ed2d8849e3686706.tar.gz
custom vim colourscheme
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 7da1ec7..d20508c 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,6 +1,7 @@
zstyle ':completion:*' completer _complete _ignored
zstyle :compinstall filename '/home/shmibs/.zshrc'
setopt completealiases
+setopt interactivecomments
autoload -U compinit
compinit
@@ -21,6 +22,21 @@ unsetopt beep
PROMPT="%{%B$fg[white]%}[%{%(!.$fg[red].$fg[magenta])%}%n@%M %{$fg[blue]%}%c%{$fg[white]%}]: %{%b$reset_color%}"
+################# HIGHLIGHTING ################
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
+
+#ZSH_HIGHLIGHT_STYLES[alias]="fg=yellow"
+#ZSH_HIGHLIGHT_STYLES[builtin]="fg=yellow"
+#ZSH_HIGHLIGHT_STYLES[function]="fg=yellow"
+#ZSH_HIGHLIGHT_STYLES[command]="fg=yellow"
+
+ZSH_HIGHLIGHT_STYLES[single-quoted-argument]="fg=red"
+ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=red"
+
+# highlight comments
+ZSH_HIGHLIGHT_PATTERNS+=('\#*' 'fg=cyan')
+
################# KEYBINDINGS #################
typeset -g -A key
@@ -97,6 +113,14 @@ b2h() {
echo "${val}${suffixes[$sindex]}"
}
+scap() {
+ archey3
+ sleep .1
+ rm /tmp/out.webm
+ ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 \
+ -c:v libvpx -b:v 4M -threads 4 /tmp/out.webm > /dev/null 2>&1
+}
+
send() {
if [ "$1" ]; then
scp $@ shmibbles.me:/srv/http/tmp/