From: Frank Brehm Date: Tue, 22 Nov 2016 09:44:33 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4ea3adaf42b50de66e8efee2982df7a8871315c2;p=config%2Fbruni%2Fetc.git committing changes in /etc after emerge run Package changes: --- diff --git a/profile.d/vte.sh b/profile.d/vte.sh deleted file mode 100644 index 95d20c7d..00000000 --- a/profile.d/vte.sh +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright © 2006 Shaun McCance -# Copyright © 2013 Peter De Wachter -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Not bash or zsh? -[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] || return 0 - -# Not an interactive shell? -[[ $- == *i* ]] || return 0 - -# Not running under vte? -[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0 - -__vte_urlencode() ( - # This is important to make sure string manipulation is handled - # byte-by-byte. - LC_ALL=C - str="$1" - while [ -n "$str" ]; do - safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}" - printf "%s" "$safe" - str="${str#"$safe"}" - if [ -n "$str" ]; then - printf "%%%02X" "'$str" - str="${str#?}" - fi - done -) - -# Print a warning so that anyone who's added this manually to his PS1 can adapt. -# The function will be removed in a later version. -__vte_ps1() { - echo -n "(__vte_ps1 is obsolete)" -} - -__vte_osc7 () { - printf "\033]7;file://%s%s\a" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")" -} - -__vte_prompt_command() { - local pwd='~' - [ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/} - printf "\033]0;%s@%s:%s\007%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)" -} - -case "$TERM" in - xterm*|vte*) - [ -n "$BASH_VERSION" ] && PROMPT_COMMAND="__vte_prompt_command" - [ -n "$ZSH_VERSION" ] && precmd_functions+=(__vte_osc7) - ;; -esac - -true