sbcli: better prompt; zsh: better prompt and cowsay

This commit is contained in:
2019-04-15 20:32:24 +02:00
parent c7d53d76c7
commit 7799367b58
2 changed files with 7 additions and 6 deletions

View File

@@ -28,5 +28,6 @@
(defun colorize (color var) (defun colorize (color var)
(format nil "~a[~dm~a~a[0m" (code-char 27) (gethash color *colors*) var (code-char 27))) (format nil "~a[~dm~a~a[0m" (code-char 27) (gethash color *colors*) var (code-char 27)))
(setf *prompt* (colorize :bold (colorize :blue *prompt*))) (setf *prompt* (colorize :bold (colorize :blue "λ ")))
(setf *ret* (colorize :bold (colorize :red *ret*))) (setf *prompt2* (colorize :bold (colorize :blue "λ₂ ")))
(setf *ret* (colorize :bold (colorize :red "⇒ ")))

8
zshrc
View File

@@ -105,11 +105,11 @@ function rprompt-git-current-branch {
color=%B%F{blue} color=%B%F{blue}
fi fi
echo "on %{$fg[white]%}$color$name$action%f%b %{$reset_color%}" echo "%{$fg[white]%}$color$name$action%f%b%{$reset_color%}"
} }
RPROMPT='`rprompt-git-current-branch`' RPROMPT='`rprompt-git-current-branch`'
RPROMPT+="%{$reset_color%}%{$fg[yellow]%}%~%{$reset_color%}" RPROMPT+="%{$reset_color%}%{$fg[yellow]%}%~%{$reset_color%}"
save_dotfiles(){ save_dotfiles(){
local DOTPATH=~/Documents/Code/Github/.dotfiles/ local DOTPATH=~/Documents/Code/Github/.dotfiles/
@@ -198,7 +198,7 @@ function ghcl {
git clone git@github.com:$1.git git clone git@github.com:$1.git
} }
fortune | cowsay fortune | cowsay -f koala
# eval `opam config env` # eval `opam config env`