Have pkgusrs run ldconfig on logout.
authorSteve Youngs <steve@steveyoungs.com>
Fri, 26 Jun 2015 13:34:57 +0000 (23:34 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Fri, 26 Jun 2015 13:34:57 +0000 (23:34 +1000)
All too often a package installation doesn't include running ldconfig,
this takes care of that by running it whenever a pkgusr logs out.

Also, add a .gitconfig

* etc/pkgusr/zsh/zsh-pkgtools (pkgsu): Ensure a login shell.

* etc/pkgusr/bash_logout: New.  Just runs ldconfig on logout.

* etc/pkgusr/skel-package/.gitconfig: New.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/bash_logout [new file with mode: 0644]
etc/pkgusr/skel-package/.bash_logout [new symlink]
etc/pkgusr/skel-package/.gitconfig [new file with mode: 0644]
etc/pkgusr/zsh/zsh-pkgtools

diff --git a/etc/pkgusr/bash_logout b/etc/pkgusr/bash_logout
new file mode 100644 (file)
index 0000000..4cbde1c
--- /dev/null
@@ -0,0 +1,9 @@
+# -*- shell-script -*-
+## Run ldconfig on logout because some packages don't do it during
+## installs and I never remember to do it manually.
+
+ldconfig || return 0
+
+# Local variables:
+# sh-basic-offset: 4
+# End:
diff --git a/etc/pkgusr/skel-package/.bash_logout b/etc/pkgusr/skel-package/.bash_logout
new file mode 120000 (symlink)
index 0000000..e3b91d9
--- /dev/null
@@ -0,0 +1 @@
+/etc/pkgusr/bash_logout
\ No newline at end of file
diff --git a/etc/pkgusr/skel-package/.gitconfig b/etc/pkgusr/skel-package/.gitconfig
new file mode 100644 (file)
index 0000000..d2c909f
--- /dev/null
@@ -0,0 +1,20 @@
+[user]
+       name = Steve Youngs
+       email = steve@steveyoungs.com
+[color]
+       pager = true
+       ui = auto
+[core]
+       pager = less
+       editor = nano -w
+[alias]
+       cwl = !git commit -sF $(git rev-parse --show-toplevel)/++log
+       cawl = !git commit -saF $(git rev-parse --show-toplevel)/++log
+       alias = config --get-regexp ^alias
+       co = checkout
+       cob = checkout -b
+       ci = commit
+       cam = commit -sam
+       bi = bisect
+       rbi = rebase -i
+       curb = rev-parse --abbrev-ref HEAD
index f66d553..6ee2887 100644 (file)
@@ -270,7 +270,7 @@ pkgsu()
                 echo "Usage: $0 [PKGUSR]" >&2
                 return 1
         else
-                ssh -l root localhost -t su $argv[1]
+                ssh -l root localhost -t su $argv[1]
         fi
 }