From d4609b61881781095176ee1b53c7e71b8bf5fb63 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 01:22:25 +0200 Subject: tv bash: cd to repo at stockholm workspace --- tv/2configs/bash/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tv/2configs') diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index 40c0725e..31f744ba 100644 --- a/tv/2configs/bash/default.nix +++ b/tv/2configs/bash/default.nix @@ -32,6 +32,12 @@ with import ; if test -n "$SSH_AGENT_PID"; then PS1="ssh-agent[$SSH_AGENT_PID] $PS1" fi + + case ''${XMONAD_SPAWN_WORKSPACE-} in + stockholm) + cd ~/stockholm + ;; + esac ''; }; } -- cgit v1.2.3 From 02252bdaf0ff41472550fb8470410e901938bb7a Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 01:45:10 +0200 Subject: tv bash: add /* sh */ --- tv/2configs/bash/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tv/2configs') diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index 31f744ba..546b2e7b 100644 --- a/tv/2configs/bash/default.nix +++ b/tv/2configs/bash/default.nix @@ -4,7 +4,7 @@ with import ; { programs.bash = { - interactiveShellInit = '' + interactiveShellInit = /* sh */ '' HISTCONTROL='erasedups:ignorespace' HISTSIZE=65536 HISTFILESIZE=$HISTSIZE @@ -14,7 +14,7 @@ with import ; shopt -s no_empty_cmd_completion complete -d cd ''; - promptInit = '' + promptInit = /* sh */ '' case $UID in 0) PS1='\[\e[1;31m\]\w\[\e[0m\] ' -- cgit v1.2.3