summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
m---------applis/powerline-shell0
-rw-r--r--applis/powerline-shell-config.py.dist51
-rwxr-xr-xinstall.sh4
4 files changed, 58 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index c79a0a7..4f0ab52 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -31,3 +31,6 @@
[submodule "applis/eg"]
path = applis/eg
url = https://github.com/srsudar/eg.git
+[submodule "applis/powerline-shell"]
+ path = applis/powerline-shell
+ url = https://github.com/milkbikis/powerline-shell.git
diff --git a/applis/powerline-shell b/applis/powerline-shell
new file mode 160000
+Subproject d48f383112f5520c4c33d69dca0806e127f495d
diff --git a/applis/powerline-shell-config.py.dist b/applis/powerline-shell-config.py.dist
new file mode 100644
index 0000000..a87169d
--- /dev/null
+++ b/applis/powerline-shell-config.py.dist
@@ -0,0 +1,51 @@
+# This is the configuration file for your powerline-shell prompt
+# Every time you make a change to this file, run install.py to apply changes
+#
+# For instructions on how to use the powerline-shell.py script, see the README
+
+# Add, remove or rearrange these segments to customize what you see on the shell
+# prompt. Any segment you add must be present in the segments/ directory
+
+SEGMENTS = [
+# Set the terminal window title to user@host:dir
+# 'set_term_title',
+
+# Show current virtual environment (see http://www.virtualenv.org/)
+ 'virtual_env',
+
+# Show the current user's username as in ordinary prompts
+ 'username',
+
+# Show the machine's hostname. Mostly used when ssh-ing into other machines
+ 'hostname',
+
+# Show a padlock when ssh-ing from another machine
+ 'ssh',
+
+# Show the current directory. If the path is too long, the middle part is
+# replaced with ellipsis ('...')
+ 'cwd',
+
+# Show a padlock if the current user has no write access to the current
+# directory
+ 'read_only',
+
+# Show the current git branch and status
+ 'git',
+
+# Show the current svn branch and status
+ 'svn',
+
+# Show number of running jobs
+ 'jobs',
+
+# Show the last command's exit code if it was non-zero
+# 'exit_code',
+
+# Shows a '#' if the current user is root, '$' otherwise
+# Also, changes color if the last command exited with a non-zero error code
+ 'root',
+]
+
+# Change the colors used to draw individual segments in your prompt
+THEME = 'default'
diff --git a/install.sh b/install.sh
index f298670..9c71d13 100755
--- a/install.sh
+++ b/install.sh
@@ -21,3 +21,7 @@ ln -s $CURRENT_PATH/fonts ~/.fonts
fc-cache -vf ~/.fonts
ln -s $CURRENT_PATH/bin ~/bin
+
+cp $CURRENT_PATH/applis/powerline-shell-config.py.dist $CURRENT_PATH/applis/powerline-shell/config.py
+cd $CURRENT_PATH/applis/powerline-shell && ./install.py && cd -
+ln -s $CURRENT_PATH/applis/powerline-shell/powerline-shell.py $CURRENT_PATH/bin