aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc26
-rw-r--r--xmonad.hs1
2 files changed, 21 insertions, 6 deletions
diff --git a/.zshrc b/.zshrc
index b3e9722..74a4f5e 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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
diff --git a/xmonad.hs b/xmonad.hs
index f409cc0..c10070b 100644
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -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