From b88cf85adc0be578073894ce0f49051008707cb0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 28 Oct 2016 18:22:15 +0300 Subject: remove more dead code from bash dotfiles --- %HOME%/.profile | 41 +++++------------------------------------ 1 file changed, 5 insertions(+), 36 deletions(-) (limited to '%HOME%/.profile') 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 . +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" -- cgit v1.2.3