aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-10-21 11:29:40 +0200
committerKarel Kočí <cynerd@email.cz>2016-10-21 11:29:40 +0200
commitb65a3c7395af30c49fd7eb7b5fb90d459d8238d0 (patch)
tree224cecdbc69c95d742ac2ab5a0ef416418d333f6
parent299db32119b6f51c36dcf34e0755dcabfa194855 (diff)
downloadmyconfigs-b65a3c7395af30c49fd7eb7b5fb90d459d8238d0.tar.gz
myconfigs-b65a3c7395af30c49fd7eb7b5fb90d459d8238d0.tar.bz2
myconfigs-b65a3c7395af30c49fd7eb7b5fb90d459d8238d0.zip
Some updates in zshrc and allow svg render by imagemagic feh
-rw-r--r--shellrc2
-rw-r--r--zshrc9
2 files changed, 3 insertions, 8 deletions
diff --git a/shellrc b/shellrc
index 0f84d26..c497a93 100644
--- a/shellrc
+++ b/shellrc
@@ -16,7 +16,7 @@ alias gdb='gdb -q'
alias cgdb='cgdb -q'
alias octave='octave-cli -q'
alias ssh='TERM="xterm-256color" ssh'
-alias feh='feh -.'
+alias feh='feh --magick-timeout 1 -.'
alias make='make -j 8'
export LESS=-R
diff --git a/zshrc b/zshrc
index 1ce5fdf..6f4944e 100644
--- a/zshrc
+++ b/zshrc
@@ -36,14 +36,9 @@ bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
# PROMPT #######################################################
-annoyme_check() {
- if ls ~/.annoyme/*.pid 2>/dev/null >/dev/null; then
- echo "%{$fg_bold[red]%}!"
- fi
-}
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %?
-)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} "
+)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} "
if [ -e ~/.local/git-prompt.sh ]; then
source ~/.local/git-prompt.sh
@@ -53,7 +48,7 @@ if [ -e ~/.local/git-prompt.sh ]; then
export GIT_PS1_STATESEPARATOR=""
export GIT_PS1_SHOWUPSTREAM=y
export GIT_PS1_DESCRIBE_STYLE="branch"
- RPROMPT=$RPROMPT'$(__git_ps1 "%s")'
+ RPROMPT='$(__git_ps1 "%s")'
fi
# Long running bell ############################################
# Inspired by: https://gist.github.com/jpouellet/5278239