Commit Graph

297 Commits

Author SHA1 Message Date
ZyX c566064053 Add setopt promptpercent and promptsubst
These options are required for Powerline to work in zsh, but the latter
is off by default.
2013-01-28 06:40:27 +01:00
ZyX 45882f95e8 Restore export as it makes sense in bash
Bash has weird initialization: bashrc is sourced in non-login
interactive shell, but not in login interactive shell; profile is
sourced in login interactive shell, but not in non-login interactive,
thus exporting in profile does make sense. In zsh case zshrc is always
sourced when shell is interactive and exporting thus makes no sense.
2013-01-28 06:40:08 +01:00
ZyX 8dd5aeb09d Remove "$()" method in pre-prompt hook
Using "$()" method on pre-prompt hook is just asking for security
trouble.
2013-01-28 06:39:10 +01:00
ZyX 99158e3ef2 Fix zsh prompt security and other issues
* Escape percent in zsh prompt
* Prevent some security issues (directory named `$(echo abc)` appeared as `abc`)
    (`"$()"` → `'$()'`)
* Removed exports
2013-01-28 06:38:28 +01:00
ZyX d20df5a382 Remove placeholder and use escaping instead 2013-01-28 06:38:17 +01:00
Kim Silkebækken a42f9b6e2f Add output_raw argument to Renderer.render() method
Update all ipython modules to use it to get unhighlighted prompt

Conflicts:
	powerline/renderers/ipython.py
2013-01-28 06:36:52 +01:00
ZyX 0b251425da Add IPython prompt support 2013-01-28 06:35:56 +01:00
Kim Silkebækken 98269a4bb5 Handle more KeyErrors in common weather segment 2013-01-27 17:42:11 +01:00
Kim Silkebækken d6da2c8d98 Reset memoize cache if unable to unpickle
This is usually due to the cache being stored with Python 3 and then
attempted to being loaded in Python 2 which raises a ValueError.

Closes #138.
2013-01-27 17:40:02 +01:00
Kim Silkebækken 38195f490e Handle KeyErrors in common weather segment
If the query doesn't return valid weather information (e.g. if the
location query is invalid) it will return an empty weather segment.

Closes #128.
2013-01-25 17:30:20 +01:00
Kim Silkebækken 1564e338b3 Remove percent placeholder from themes
The vim renderer now handles searching and replacing of the percent
placeholder internally so percent signs can be used directly in themes
and segments instead of the percent placeholder.

Refs #127.
2013-01-25 14:52:43 +01:00
Sven Strothoff 0dd3393bb3 Replace old line number character
themes/vim/help.json still used the line number character from
vim-powerline.
2013-01-25 13:38:34 +01:00
Kim Silkebækken 147c96a270 Add Solarized Dark shell colorscheme 2013-01-25 11:50:26 +01:00
Kim Silkebækken 186c99f95c Add Solarized Dark colorscheme
Closes #124.
2013-01-25 11:41:56 +01:00
Kim Silkebækken c06f8836b3 Update docs and create a common terminal feature support matrix 2013-01-25 10:48:44 +01:00
Kim Silkebækken 16b82cf070 Add configuration option and docs for 24-bit terminal colors
Closes #81.
2013-01-25 10:08:12 +01:00
Kim Silkebækken 9985ca5313 Add hex colors for vim gradient 2013-01-25 09:44:31 +01:00
Kim Silkebækken cfe96ff010 Fix minor doc issues 2013-01-25 09:40:07 +01:00
Kim Silkebækken e49f760510 Use hex strings for RGB colors in colorschemes
Previously you'd have to convert a hex number to an integer, this change
makes it possible to use a hex string instead which is much more useful.
2013-01-25 09:37:03 +01:00
Kim Silkebækken 6ac9f0d602 Restructure and improve installation docs
The installation docs have been split into separate guides for OS X and
Linux, with OS-specific troubleshooting as part of the installation
guide.

Terminal emulator support tables have been added to both guides.

Closes #121.
2013-01-24 17:35:16 +01:00
Kim Silkebækken a87309899f Add parameter for home dir shortening
Closes #115.
2013-01-24 17:21:46 +01:00
Kim Silkebækken cefa7ef5fe Add file_size segment for vim
Closes #118.
2013-01-24 12:36:13 +01:00
Kim Silkebækken 5d5841c1fa Fix vim file_directory segment
Closes #117.
Closes #119.
2013-01-24 12:17:25 +01:00
Kim Silkebækken 9282bf61f4 Add package conflicts to Arch Linux PKGBUILDs 2013-01-24 08:00:18 +01:00
Daniel Hahler 0d2056ab04 Shorten /home/foo/ to ~foo in vim file directory segment
Replace "/home/foo/" with "~foo" (foo's home, not current user's).
This shortens paths like /home/www-data/foo/.

Closes #115.
2013-01-24 07:25:31 +01:00
Kim Silkebækken bacb260312 Revert "Remove Ubuntu Mono from fontconfig file"
This reverts commit b57174a16c.

Closes #113.
2013-01-24 08:21:44 +01:00
Kim Silkebækken 2d6ee2655c Add 24-bit color support for shell renderers
Refs #81.
2013-01-23 23:27:24 +01:00
Kim Silkebækken b86f79cf9e Restructure docs slightly
The header levels have been switched to correspond more with the Sphinx
suggested standards and the troubleshooting section has been
restructured to make it easier to find solutions. Minor markup changes
and other changes are also included in this commit.
2013-01-23 10:24:07 +01:00
Kim Silkebækken 40d542af12 Add troubleshooting info for PuTTy users
Refs #107.
2013-01-23 09:56:58 +01:00
Kim Silkebækken b620d3a925 Split Arch Linux packages into Python 2/3 variants 2013-01-23 08:27:44 +01:00
Kim Silkebækken bf3d2e878b Include bindings in package
Closes #109.
2013-01-23 07:40:19 +01:00
Kim Silkebækken da6dea74a9 Fix Unicode encoding issue
Closes #108.
2013-01-23 07:24:36 +01:00
Kim Silkebækken 2a9edc19ca Update troubleshooting info for ImportErrors on OS X
Refs #39.
Refs #95.
2013-01-22 18:50:37 +01:00
ZyX fd98313592 Use elog in place of einfo
Otherwise message is not repeated at the end of building process and thus is
likely to be missed by user.
2013-01-22 18:40:00 +01:00
Kim Silkebækken 772372786e Update Arch Linux PKGBUILD 2013-01-22 18:26:11 +01:00
ZyX a462f1e82b Add zsh USE flag and information about Python 3.3 compatibility 2013-01-22 18:05:54 +01:00
ZyX f4a95fbbbf Rename prompt.* to powerline.*
Reasons:
- prompt.* is a bad name for installing into /usr/share/zsh/site-contrib
- prompt.* does not conform powerline.vim and powerline.conf (vim and tmux)
2013-01-22 20:51:26 +04:00
Kim Silkebækken 0cb218212e Update installation instructions for tmux and shell prompts 2013-01-22 17:26:43 +01:00
Kim Silkebækken c818e7c611 Install source_plugin.vim in Arch Linux PKGBUILD 2013-01-22 17:20:58 +01:00
Kim Silkebækken 51c302a6ca Revert to previous way of sourcing vim plugin
Refs #95.
2013-01-22 17:14:47 +01:00
ZyX 0d39dd5507 Add installation of powerline.vim into /usr/share/vim/vimfiles/plugin 2013-01-22 17:10:11 +01:00
ZyX 6bc13b8d60 Make g:powerline_* variables fixed*, added g:powerline_loaded
The latter is required to be able to forbid sourcing powerline.vim

* changes are ignored until script is resourced
2013-01-22 17:10:01 +01:00
Kim Silkebækken f175a6babb Fix issue with $pipestatus
$pipestatus is a space-separated int list and not a single int.
2013-01-22 16:45:31 +01:00
Kim Silkebækken 8f055473ac Update tmux theme and add sourceable config file
The tmux theme has been updated and now matches the other themes much
better. It may still look a little boring and segment cropping isn't
enabled, but it's a good starting point. It colors the weather segment
differently based on the current weather and temperature, and some other
segment colors have been tweaked.

To enable the theme, add the following to your tmux.conf:

    source '/full/path/to/powerline/bindings/tmux/powerline.conf'

Closes #51.
2013-01-22 16:36:50 +01:00
Kim Silkebækken 96760675ea Add "e" symbol before virtualenv prompt segment 2013-01-22 14:59:07 +01:00
Kim Silkebækken 7c19381b24 Update optional dependency list 2013-01-22 14:23:21 +01:00
Kim Silkebækken 504e212f14 Add common virtualenv segment 2013-01-22 14:19:04 +01:00
Kim Silkebækken 35de8a192b Fix common cwd segment for absolute paths 2013-01-22 14:09:02 +01:00
Kim Silkebækken c5df2fcb7c Create awesome looking prompt with divided cwd
This is inspired by the look of powerline-shell:
https://github.com/milkbikis/powerline-shell
2013-01-22 14:03:54 +01:00
Kim Silkebækken a023f4ad10 Add bash prompt script for sourcing in bashrc
This only displays the left part of the prompt. It requires the
left-only theme to be able to display all segments.

The script must be sourced with an absolute path for now:

    . /path/to/powerline/bindings/bash/prompt.sh

Closes #90.
2013-01-22 13:45:03 +01:00