Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/305011

Change subject: admin: add some dotfiles for myself
......................................................................

admin: add some dotfiles for myself

Change-Id: I99fb0e63034f96fe4a54185511899b6fb64b9d14
---
A modules/admin/files/home/oblivian/.bash_profile
A modules/admin/files/home/oblivian/.bashrc
A modules/admin/files/home/oblivian/.hosts/carbon
A modules/admin/files/home/oblivian/.hosts/copper
4 files changed, 52 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/11/305011/1

diff --git a/modules/admin/files/home/oblivian/.bash_profile 
b/modules/admin/files/home/oblivian/.bash_profile
new file mode 100644
index 0000000..ae715d2
--- /dev/null
+++ b/modules/admin/files/home/oblivian/.bash_profile
@@ -0,0 +1,4 @@
+# Load configs from bashrc
+if [ ~/.bashrc ]; then
+       . ~/.bashrc
+fi
diff --git a/modules/admin/files/home/oblivian/.bashrc 
b/modules/admin/files/home/oblivian/.bashrc
new file mode 100644
index 0000000..a71276e
--- /dev/null
+++ b/modules/admin/files/home/oblivian/.bashrc
@@ -0,0 +1,44 @@
+# Source system's bashrc
+if [ -f /etc/bash.bashrc ]; then
+    . /etc/bash.bashrc
+fi
+
+# don't put duplicate lines in the history. See bash(1) for more options
+export HISTCONTROL=ignoredups
+# ... and ignore same sucessive entries.
+export HISTCONTROL=ignoreboth
+
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+    xterm*|rxvt*)
+        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: 
${PWD/$HOME/~}\007"'
+        ;;
+    *)
+        ;;
+esac
+
+# Set up colored prompt if in a terminal that supports colors, or
+# Use the Debian standard.
+#
+case "$TERM" in
+    xterm-256color)
+        
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
 ';;
+    *)
+    ;;
+esac
+
+if [ -f ~/.bash_aliases ]; then
+    . ~/.bash_aliases
+fi
+
+# Host-specific entries
+if [ -r "${HOME}/.hosts/${HOSTNAME}" ]; then
+    . "${HOME}/.hosts/${HOSTNAME}"
+fi
+
+# Aliases
+alias set_proxy="export http_proxy=http://webproxy.eqiad.wmnet:8080; export 
HTTPS_PROXY=http://webproxy.eqiad.wmnet:8080;";
+alias pdisable="sudo puppet agent --disable $@"
+alias penable="sudo puppet agent --enable"
+alias prun="sudo puppet agent -tv"
+alias please="sudo $(fc -ln -1)"
diff --git a/modules/admin/files/home/oblivian/.hosts/carbon 
b/modules/admin/files/home/oblivian/.hosts/carbon
new file mode 100644
index 0000000..43e3152
--- /dev/null
+++ b/modules/admin/files/home/oblivian/.hosts/carbon
@@ -0,0 +1,2 @@
+export REPREPRO_BASE_DIR=/srv/wikimedia
+export GNUPGHOME=/root/.gnupg 
diff --git a/modules/admin/files/home/oblivian/.hosts/copper 
b/modules/admin/files/home/oblivian/.hosts/copper
new file mode 100644
index 0000000..84e82bc
--- /dev/null
+++ b/modules/admin/files/home/oblivian/.hosts/copper
@@ -0,0 +1,2 @@
+export DEBEMAIL="[email protected]"
+export DEBFULLNAME="Giuseppe Lavagetto"

-- 
To view, visit https://gerrit.wikimedia.org/r/305011
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I99fb0e63034f96fe4a54185511899b6fb64b9d14
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to