sbcli: better prompt; zsh: better prompt and cowsay
This commit is contained in:
5
sbclirc
5
sbclirc
@@ -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
8
zshrc
@@ -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`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user