From 9d6d5f8f555dd30473a6e28f1e9720bd12e026ee Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Mon, 8 Jan 2018 21:19:29 +0100 Subject: [PATCH] Remove obsolete files --- .config/bash/completion | 3 --- .config/bash/environ | 13 +++++-------- .config/bash/prompt.bash | 32 -------------------------------- .config/bash/solarized | 23 ----------------------- 4 files changed, 5 insertions(+), 66 deletions(-) delete mode 100644 .config/bash/prompt.bash delete mode 100644 .config/bash/solarized diff --git a/.config/bash/completion b/.config/bash/completion index b1460ac..6af29cb 100644 --- a/.config/bash/completion +++ b/.config/bash/completion @@ -1,9 +1,6 @@ # Add tab completion for many Bash commands - [ -f /etc/bash_completion ] && . /etc/bash_completion -[ -f "${HOME}/.cache/bash/git-completion.bash" ] && . "${HOME}/.cache/bash/git-completion.bash" - # Enable tab completion for `g` by marking it as an alias for `git` if type _git &> /dev/null; then complete -o default -o nospace -F _git g; diff --git a/.config/bash/environ b/.config/bash/environ index 051574b..60657f8 100644 --- a/.config/bash/environ +++ b/.config/bash/environ @@ -1,4 +1,4 @@ -# Colors +# Color terminal if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM='gnome-256color'; elif infocmp xterm-256color >/dev/null 2>&1; then @@ -8,11 +8,9 @@ fi; # Git completion and prompt source "/usr/share/git/completion/git-completion.bash" source "/usr/share/git/completion/git-prompt.sh" - export GIT_PS1_SHOWDIRTYSTATE=true export GIT_PS1_SHOWCOLORHINTS=true export GIT_PS1_UNTRACKEDFILES=true - export PS1="\u@\h:\w (\[\e[32m\]${__git_ps1_branch_name}\[\e[0m\])\$" export PROMPT_COMMAND="__git_ps1 '\u@\h:\w' '\\$ '" @@ -25,11 +23,6 @@ export HISTIGNORE="ll:ls:cd:cd -:pwd:exit:date:* --help"; # Whenever displaying the prompt, write the previous line to disk export PROMPT_COMMAND="$PROMPT_COMMAND; history -a" - -export USERNAME=$LOGNAME -export HOSTNAME=`hostname` -#echo Welcome $USERNAME. You are on Server: $HOSTNAME !!! - # Add keys for github and bitbucket #if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then # eval `ssh-agent` @@ -85,3 +78,7 @@ if [ -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs ]; then . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs export XDG_DESKTOP_DIR XDG_DOWNLOAD_DIR XDG_TEMPLATES_DIR XDG_PUBLICSHARE_DIR XDG_DOCUMENTS_DIR XDG_MUSIC_DIR XDG_PICTURES_DIR XDG_VIDEOS_DIR fi + +export USERNAME=$LOGNAME +export HOSTNAME=`hostname` +echo Welcome $USERNAME. You are on Server: $HOSTNAME !!! diff --git a/.config/bash/prompt.bash b/.config/bash/prompt.bash deleted file mode 100644 index 5a9deed..0000000 --- a/.config/bash/prompt.bash +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# Colors -if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then - export TERM='gnome-256color'; -elif infocmp xterm-256color >/dev/null 2>&1; then - export TERM='xterm-256color'; -fi; - - -# Git completion and prompt -source "/usr/share/git/completion/git-completion.bash" -source "/usr/share/git/completion/git-prompt.sh" - -export GIT_PS1_SHOWDIRTYSTATE=true -export GIT_PS1_SHOWCOLORHINTS=true -export GIT_PS1_UNTRACKEDFILES=true - -export PS1="\u@\h:\w (\[\e[32m\]${__git_ps1_branch_name}\[\e[0m\])\$" -export PROMPT_COMMAND="__git_ps1 '\u@\h:\w' '\\$ '" - -# Larger bash history -export HISTFILESIZE=10000; -export HISTSIZE=5000; -export HISTCONTROL=ignoreboth:erasedups -export HISTIGNORE="ll:ls:cd:cd -:pwd:exit:date:* --help"; - -# Whenever displaying the prompt, write the previous line to disk -export PROMPT_COMMAND="$PROMPT_COMMAND; history -a" - -# When the shell exits, append to the history file instead of overwriting it -shopt -s histappend diff --git a/.config/bash/solarized b/.config/bash/solarized deleted file mode 100644 index 180196d..0000000 --- a/.config/bash/solarized +++ /dev/null @@ -1,23 +0,0 @@ -[[ "$OSTYPE" == *darwin* ]] && return; - -echo -ne '\eP\e]10;#839496\a' # Foreground -> base0 -echo -ne '\eP\e]11;#002B36\a' # Background -> base03 - -echo -ne '\eP\e]12;#DC322F\a' # Cursor -> red - -echo -ne '\eP\e]4;0;#073642\a' # black -> Base02 -echo -ne '\eP\e]4;8;#002B36\a' # bold black -> Base03 -echo -ne '\eP\e]4;1;#DC322F\a' # red -> red -echo -ne '\eP\e]4;9;#CB4B16\a' # bold red -> orange -echo -ne '\eP\e]4;2;#859900\a' # green -> green -echo -ne '\eP\e]4;10;#586E75\a' # bold green -> base01 * -echo -ne '\eP\e]4;3;#B58900\a' # yellow -> yellow -echo -ne '\eP\e]4;11;#657B83\a' # bold yellow -> base00 * -echo -ne '\eP\e]4;4;#268BD2\a' # blue -> blue -echo -ne '\eP\e]4;12;#839496\a' # bold blue -> base0 * -echo -ne '\eP\e]4;5;#D33682\a' # magenta -> magenta -echo -ne '\eP\e]4;13;#6C71C4\a' # bold magenta -> violet -echo -ne '\eP\e]4;6;#2AA198\a' # cyan -> cyan -echo -ne '\eP\e]4;14;#93A1A1\a' # bold cyan -> base1 * -echo -ne '\eP\e]4;7;#EEE8D5\a' # white -> Base2 -echo -ne '\eP\e]4;15;#FDF6E3\a' # bold white -> Base3 -- 2.43.0