diff options
author | tv <tv@krebsco.de> | 2017-06-04 15:06:22 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-04 15:06:56 +0200 |
commit | 9d12c78617ee9bfac3ed6c69df548aa23b596f25 (patch) | |
tree | e8b00dc45e106e61e2e9fc889cefe218e21034a8 /tv/2configs/bash.nix | |
parent | 28eeec46a374314fa2b9a339d506274defb072e5 (diff) |
tv: move bash config to dedicated directory
Diffstat (limited to 'tv/2configs/bash.nix')
-rw-r--r-- | tv/2configs/bash.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tv/2configs/bash.nix b/tv/2configs/bash.nix deleted file mode 100644 index 40c0725..0000000 --- a/tv/2configs/bash.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: - -with import <stockholm/lib>; - -{ - programs.bash = { - interactiveShellInit = '' - HISTCONTROL='erasedups:ignorespace' - HISTSIZE=65536 - HISTFILESIZE=$HISTSIZE - - shopt -s checkhash - shopt -s histappend histreedit histverify - shopt -s no_empty_cmd_completion - complete -d cd - ''; - promptInit = '' - case $UID in - 0) - PS1='\[\e[1;31m\]\w\[\e[0m\] ' - ;; - ${toString config.krebs.build.user.uid}) - PS1='\[\e[1;32m\]\w\[\e[0m\] ' - ;; - *) - PS1='\[\e[1;35m\]\u \[\e[1;32m\]\w\[\e[0m\] ' - ;; - esac - if test -n "$SSH_CLIENT"; then - PS1='\[\e[35m\]\h'" $PS1" - fi - if test -n "$SSH_AGENT_PID"; then - PS1="ssh-agent[$SSH_AGENT_PID] $PS1" - fi - ''; - }; -} |