diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-24 10:23:59 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-24 10:23:59 +0200 |
| commit | 5260c02746f0825ee90eb56c4fe91a6bf39cc9cc (patch) | |
| tree | 8d1cb0c4cbce0b9133664a59a845f5bf505ccbbd | |
| parent | 3a70f9f76654ff63e3242cf3324cc77c44e1980f (diff) | |
| download | dotfiles-5260c02746f0825ee90eb56c4fe91a6bf39cc9cc.tar.gz dotfiles-5260c02746f0825ee90eb56c4fe91a6bf39cc9cc.tar.bz2 dotfiles-5260c02746f0825ee90eb56c4fe91a6bf39cc9cc.zip | |
Changing zsh prompt if tty or display
| -rw-r--r-- | .zshrc | 26 | ||||
| -rw-r--r-- | xmonad.hs | 1 |
2 files changed, 21 insertions, 6 deletions
@@ -7,12 +7,24 @@ export DOTFILES=$HOME/dotfiles # load aliases source $DOTFILES/.zsh_aliases -# pure prompt -export FPATH="$FPATH:$HOME/.zsh/pure" -ZSH_THEME="pure" -autoload -U promptinit -promptinit -prompt pure +# prompt +case `tty` in + /dev/tty[1-9]) + # %~ path ('~' if $HOME) + # %B/%b start/stop bold + # %B/%b start/stop color + NEWLINE=$'\n' + export PROMPT="${NEWLINE}%B%F{blue}%~%f${NEWLINE}%F{red}> %f%b" + ;; + *) + # pure prompt + export FPATH="$FPATH:$HOME/.zsh/pure" + ZSH_THEME="pure" + autoload -U promptinit + promptinit + prompt pure + ;; +esac # auto complete autoload -U compinit @@ -86,3 +98,5 @@ source $HOME/.zsh/zsh-you-should-use/you-should-use.plugin.zsh # alias r # set tab to 4 spaces tabs 4 + +export LFS=/mnt @@ -23,6 +23,7 @@ main = xmonad $ desktopConfig , borderWidth = 1 , startupHook = myStartupHook , focusFollowsMouse = False -- don't change window based on mouse position (need to click) + , workspaces = ["code", "compile", "web"] ++ map show [4..9] } `additionalKeysP` myKeys myLayouts = tiledBigMaster -- bigger master for code and smaller slave for compiling |
