From 4c1fbabdbaf31eaf0ecef8f1abc16e781b5ece47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Wed, 5 Feb 2014 11:44:15 +0100 Subject: [PATCH 1/4] Modified profile.d/tsocks --- profile.d/tsocks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profile.d/tsocks b/profile.d/tsocks index 49d3f2b..5a10ee8 100644 --- a/profile.d/tsocks +++ b/profile.d/tsocks @@ -1,4 +1,6 @@ #!/bin/bash # Proxy -export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf +if [ -x /usr/bin/tsocks ] then + export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf +fi From ed48c1a1670a53f4dea83424e4fe6af8c8a1c6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Wed, 5 Feb 2014 22:03:32 +0100 Subject: [PATCH 2/4] Fix syntax --- profile.d/tsocks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profile.d/tsocks b/profile.d/tsocks index 5a10ee8..b4ef248 100644 --- a/profile.d/tsocks +++ b/profile.d/tsocks @@ -1,6 +1,7 @@ #!/bin/bash # Proxy -if [ -x /usr/bin/tsocks ] then +if [ -x /usr/bin/tsocks ] +then export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf fi From e003bd0c831512f6969da36483487628776d4d1a Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 30 Mar 2014 21:33:59 +0200 Subject: [PATCH 3/4] Add support for todo.txt --- rc.d/todo.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rc.d/todo.txt diff --git a/rc.d/todo.txt b/rc.d/todo.txt new file mode 100644 index 0000000..8eab41f --- /dev/null +++ b/rc.d/todo.txt @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ -f ~/software/todo.txt-cli/todo.sh ]; then + + source ~/software/todo.txt-cli/todo_completion + export TODOTXT_DEFAULT_ACTION=ls + + alias todo='~/software/todo.txt-cli/todo.sh' + complete -F _todo todo + + alias t='~/software/todo.txt-cli/todo.sh' + complete -F _todo t + +fi From 79febcd0b3d737265f6dc0ac96efef93c27c137c Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 30 Mar 2014 21:35:33 +0200 Subject: [PATCH 4/4] Update support script for powerline --- rc.d/zz-powerline | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rc.d/zz-powerline b/rc.d/zz-powerline index 3471fea..b9c6e55 100644 --- a/rc.d/zz-powerline +++ b/rc.d/zz-powerline @@ -1,9 +1,14 @@ #!/bin/bash # Powerline -if [ -f /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh ] +SCRIPT=/usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh +if [ -f $SCRIPT ] then - #urxvt_set_font "Terminus for Powerline-12" - urxvt_set_font "DejaVu Sans Mono for Powerline-10" - source /usr/lib64/python3.2/site-packages/powerline/bindings/bash/powerline.sh + if [ -n "$SSH_CONNECTION" ] + then + #urxvt_set_font "Terminus for Powerline-12" + export URXVT_FONT_NAME="DejaVu Sans Mono" + urxvt_set_font "DejaVu Sans Mono for Powerline-10" + source $SCRIPT + fi fi