Commit 384b651e authored by Adrien Dorsaz's avatar Adrien Dorsaz Committed by Adrien Dorsaz
Browse files

powerline: improve setup fro zsh in vim mode

parent 66988147
{
"common": {
"term_truecolor": true
},
"ext": {
"ipython": {
"colorscheme": "default",
"theme": "in",
"local_themes": {
"rewrite": "rewrite",
"out": "out",
"in2": "in2"
}
},
"pdb": {
"colorscheme": "default",
"theme": "default"
},
"shell": {
"colorscheme": "default",
"theme": "default_leftonly",
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "default",
"theme": "default",
"local_themes": {
"__tabline__": "tabline",
"cmdwin": "cmdwin",
"help": "help",
"quickfix": "quickfix",
"powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree",
"powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt",
"powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo",
"powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview"
}
},
"wm": {
"colorscheme": "default",
"theme": "default",
"update_interval": 2
}
}
}
{
"segments": {
"left": [
{
"function": "powerline.segments.common.time.date",
"name": "time",
"args": {
"format": "%H:%M",
"istime": "true"
}
},
{
"function": "powerline.segments.common.net.hostname",
"priority": 10
},
{
"function": "powerline.segments.common.env.user",
"priority": 30
},
{
"function": "powerline.segments.common.env.virtualenv",
"priority": 50
},
{
"function": "powerline_gitstatus.gitstatus",
"priority": 40
},
{
"function": "powerline.segments.shell.cwd",
"priority": 10
},
{
"function": "powerline.segments.shell.jobnum",
"priority": 20
},
{
"function": "powerline.segments.shell.mode"
},
{
"function": "powerline.segments.shell.last_pipe_status",
"priority": 10
}
]
}
}
......@@ -50,6 +50,8 @@ if [ "${proceed}" = "Y" ] || [ "${proceed}" = "y" ] ; then
install_package 'powerline' 'zsh: prefix command prompt with powerline' \
&& install_dotfile 'zshrc'
install_dotfile 'config/powerline'
# tmux
install_package 'tmux' 'tmux: use powerline as status line' \
&& install_dotfile 'tmux.conf'
......
# Set up the prompt
source /usr/share/powerline/bindings/zsh/powerline.zsh
# Use vi key binding
bindkey -v
export KEYTIMEOUT=1
# Set up the prompt
source /usr/share/powerline/bindings/zsh/powerline.zsh
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment