diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-28 18:22:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-28 18:22:15 +0300 |
commit | b88cf85adc0be578073894ce0f49051008707cb0 (patch) | |
tree | e727ce03dabe22ed181a5d01ebc18943858a580e /%HOME%/.profile | |
parent | bugfix (diff) | |
download | linux-home-b88cf85adc0be578073894ce0f49051008707cb0.tar.gz linux-home-b88cf85adc0be578073894ce0f49051008707cb0.zip |
remove more dead code from bash dotfiles
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.profile | 41 |
1 files changed, 5 insertions, 36 deletions
diff --git a/%HOME%/.profile b/%HOME%/.profile index 6b44625..056d9db 100644 --- a/%HOME%/.profile +++ b/%HOME%/.profile @@ -1,37 +1,6 @@ -# To the extent possible under law, the author(s) have dedicated all -# copyright and related and neighboring rights to this software to the -# public domain worldwide. This software is distributed without any warranty. -# You should have received a copy of the CC0 Public Domain Dedication along -# with this software. -# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. +LANG="$( locale --no-unicode --utf )" +export LANG -# base-files version 4.2-4 - -# ~/.profile: executed by the command interpreter for login shells. - -# The latest version as installed by the Cygwin Setup program can -# always be found at /etc/defaults/etc/skel/.profile - -# Modifying /etc/skel/.profile directly will prevent -# setup from updating it. - -# The copy in your home directory (~/.profile) is yours, please -# feel free to customise it to create a shell -# environment to your liking. If you feel a change -# would be benificial to all, please feel free to send -# a patch to the cygwin mailing list. - -# User dependent .profile file - -# Set user-defined locale -export LANG=$(locale -uU) - -# This file is not read by bash(1) if ~/.bash_profile or ~/.bash_login -# exists. -# -# if running bash -if [ -n "${BASH_VERSION}" ]; then - if [ -f "${HOME}/.bashrc" ]; then - source "${HOME}/.bashrc" - fi -fi +[ -n "${BASH_VERSION+x}" ] \ + && [ -f "$HOME/.bashrc" ] \ + && source "$HOME/.bashrc" |