diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2015-09-19 15:49:29 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2015-09-19 15:49:29 -0400 |
commit | 118f849aed5aef3bf2750ca102007b4a38e44486 (patch) | |
tree | 47eb202ab5e4ed21a43122a44ed331e76a7bf258 /.config/login.sh | |
parent | 739fa0ff2b7b0581b2d294f8de8b9e79234ed66c (diff) | |
parent | 641fc49fc651b6a67fb8ff90198e889e0e3920bb (diff) |
Merge remote-tracking branch 'origin/master' into purdue-cs/master
# Conflicts:
# .config/X11/clientrc
# .config/bash/rc.sh
# .config/cron/make-config
# .config/emacs/custom.el
# .config/emacs/init.el
# .config/login.d/10_selected-editor.sh
# .config/login.sh
Diffstat (limited to '.config/login.sh')
-rw-r--r-- | .config/login.sh | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/.config/login.sh b/.config/login.sh index c09f15c..9499299 100644 --- a/.config/login.sh +++ b/.config/login.sh @@ -1,16 +1,15 @@ -#!/bin/bash -# ~/.profile: sourced by the command interpreter for login shells. -# I like that graphical login scripts be configured to load this, so -# it always runs, graphical or not. +#!/hint/sh +# ~/.profile: Sourced by the command interpreter for login shells # -# This file should be executable by /bin/sh, but I'm going to assume bash(1) -# -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. +# Other ~/.*profile scripts may take precedence, or be used instead +# (for example: ~/.bash_{profile,login} takes precidence, and +# ~/.xprofile is used for graphical logins). I dislike duplication, +# so I have them all configured to source this. +if [ -z "$HOME" ]; then + eval 'HOME=~' + export HOME +fi for file in "${XDG_CONFIG_HOME:-$HOME/.config}/login.d/"*.sh; do . "$file" done |