git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/vars.bash
blob: cb124be16ae067b8810696402fdc66723fd524a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2018-09-13 09:22:17 +0200
committermail_redacted_for_web 2018-09-13 09:22:17 +0200
commitdf4d15ffda28eeeb4ccc188f5a10a6f8d63c8936 (patch)
tree2c32ec44252cdc537ba50446dd4dc828ec3a22fc /LICENSE
parent60b9960ccc83c5d4a5b661d7f60afe73923bc45d (diff)
downloaddebian-scripts-df4d15ffda28eeeb4ccc188f5a10a6f8d63c8936.tar.bz2
Correction of updates count
Diffstat (limited to 'LICENSE')
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #aaaaaa; font-style: italic } /* Comment */ .highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ .highlight .k { color: #0000aa } /* Keyword */ .highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */ .highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */ .highlight .cp { color: #4c8317 } /* Comment.Preproc */ .highlight .cpf { color: #aaaaaa; font-style: italic } /* Comment.PreprocFile */ .highlight .c1 { color: #aaaaaa; font-style: italic } /* Comment.Single */ .highlight .cs { color: #0000aa; font-style: italic } /* Comment.Special */ .highlight .gd { color: #aa0000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .highlight .gi { color: #00aa00 } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #0000aa } /* Keyword.Constant */ .highlight .kd { color: #0000aa } /* Keyword.Declaration */ .highlight .kn { color: #0000aa } /* Keyword.Namespace */ .highlight .kp { color: #0000aa } /* Keyword.Pseudo */ .highlight .kr { color: #0000aa } /* Keyword.Reserved */ .highlight .kt { color: #00aaaa } /* Keyword.Type */ .highlight .m { color: #009999 } /* Literal.Number */ .highlight .s { color: #aa5500 } /* Literal.String */ .highlight .na { color: #1e90ff } /* Name.Attribute */ .highlight .nb { color: #00aaaa } /* Name.Builtin */ .highlight .nc { color: #00aa00; text-decoration: underline } /* Name.Class */ .highlight .no { color: #aa0000 } /* Name.Constant */ .highlight .nd { color: #888888 } /* Name.Decorator */ .highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ .highlight .nf { color: #00aa00 } /* Name.Function */ .highlight .nn { color: #00aaaa; text-decoration: underline } /* Name.Namespace */ .highlight .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #aa0000 } /* Name.Variable */ .highlight .ow { color: #0000aa } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #009999 } /* Literal.Number.Bin */ .highlight .mf { color: #009999 } /* Literal.Number.Float */ .highlight .mh { color: #009999 } /* Literal.Number.Hex */ .highlight .mi { color: #009999 } /* Literal.Number.Integer */ .highlight .mo { color: #009999 } /* Literal.Number.Oct */ .highlight .sa { color: #aa5500 } /* Literal.String.Affix */ .highlight .sb { color: #aa5500 } /* Literal.String.Backtick */ .highlight .sc { color: #aa5500 } /* Literal.String.Char */ .highlight .dl { color: #aa5500 } /* Literal.String.Delimiter */ .highlight .sd { color: #aa5500 } /* Literal.String.Doc */ .highlight .s2 { color: #aa5500 } /* Literal.String.Double */ .highlight .se { color: #aa5500 } /* Literal.String.Escape */ .highlight .sh { color: #aa5500 } /* Literal.String.Heredoc */ .highlight .si { color: #aa5500 } /* Literal.String.Interpol */ .highlight .sx { color: #aa5500 } /* Literal.String.Other */ .highlight .sr { color: #009999 } /* Literal.String.Regex */ .highlight .s1 { color: #aa5500 } /* Literal.String.Single */ .highlight .ss { color: #0000aa } /* Literal.String.Symbol */ .highlight .bp { color: #00aaaa } /* Name.Builtin.Pseudo */ .highlight .fm { color: #00aa00 } /* Name.Function.Magic */ .highlight .vc { color: #aa0000 } /* Name.Variable.Class */ .highlight .vg { color: #aa0000 } /* Name.Variable.Global */ .highlight .vi { color: #aa0000 } /* Name.Variable.Instance */ .highlight .vm { color: #aa0000 } /* Name.Variable.Magic */ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
#!/usr/bin/env bash
# vim:syntax=sh

# default Byobu session name
export BSNAME="CHANGEME"
# default screenshot target. Feel free to override in .local.
export SCRSHDIR="${HOME}/Pictures"
# variables for SSH, override in .local:
export SSHHOME="${HOME}/.ssh"
# 1. key files, array:
SSHKEYS=( "${SSHHOME}/id_ed25519" "${SSHHOME}/id_rsa" )
# 2. SSH environment file
export SSHENVFILE="${HOME}/.ssh/sshenv"
# 3. Hosts on which ssh-agent should run, FQDN. Array.
# Typically, "hosts" will equal your workstations. See ssh_config(5) (esp. ForwardAgent)
# Interpreted by fgrep / grep -F.
SSHAGH=( "riesling.example.com" "schorle.example.com" )
SSHAGH+=( "woschd.example.com" )
export SSHAGH

# ----- SHELL ----- #
for pa in "/usr/local/bin" "${HOME}/bin";do
	if ! printf "%b" "$PATH"|grep -P "^${pa}:|:${pa}:" >/dev/null;then
		export PATH="${pa}:${PATH}"
	fi
done
# $OSNAME
if [ -r "/etc/os-release" ];then
    OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1)"
elif [ -r "/etc/redhat-release" ];then
    grep -P "^Red[\ ]?[Hh]at" /etc/redhat-release >/dev/null 2>&1 && OSNAME="redhat"
    grep -P "^[Ff]edora" /etc/redhat-release >/dev/null 2>&1 && OSNAME="fedora"
    grep -P "^[Cc]ent[Oo][Ss]" /etc/redhat-release >/dev/null 2>&1 && OSNAME="centos"
    [ -z "$OSNAME" ]&&OSNAME="obsolete"
elif [ -r "/etc/SuSE-release" ];then
    OSNAME="oldsuse"
elif [ -r "/etc/release" ];then
    head -n1 /etc/release 2> /dev/null|grep -i solaris > /dev/null && OSNAME="solaris"
    [ -z "$OSNAME" ]&&OSNAME="obsolete"
else
	[ "$(oslevel -s >/dev/null 2>&1|wc -l)" -gt 0 ]&&OSNAME="aix"
    [ -z "$OSNAME" ]&&OSNAME="obsolete"
fi
declare -x GPG_TTY
GPG_TTY="$(tty)"
export e='2.718281828459045'
if command -v bc >/dev/null;then
	declare -x pi
	pi="$(echo "scale=64; 4*a(1)" | bc -l)"
fi

# ----- GIT ----- #
# git on the command line
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1

# ----- LESS FOR EVERYTHING ----- #
if command -v less >/dev/null;then
	# coloured mapages
	export LESS_TERMCAP_mb=$'\E[01;31m'
	export LESS_TERMCAP_md=$'\E[01;31m'
	export LESS_TERMCAP_me=$'\E[0m'
	export LESS_TERMCAP_se=$'\E[0m'
	export LESS_TERMCAP_so=$'\E[01;44;33m'
	export LESS_TERMCAP_ue=$'\E[0m'
	export LESS_TERMCAP_us=$'\E[01;32m'
	# make less more friendly for non-text input files, see lesspipe(1)
	[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
	export SYSTEMD_PAGER="less"
	export LESSANSIENDCHARS="m"
	export LESSANSIMIDCHARS="0123456789:;[?!\"'#%()*+ "
fi
# ----- MISC ----- #
# nopaste
export NOPASTE_SERVICES='pastebin nopaste'
export NOPASTE_NICK='CHANGEME'
# libvirt
export LIBVIRT_DEFAULT_URI="qemu:///system"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi