Skip to content

Instantly share code, notes, and snippets.

@thor314
Created December 17, 2021 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thor314/92142ae5323c659e7828326c79a11e44 to your computer and use it in GitHub Desktop.
Save thor314/92142ae5323c659e7828326c79a11e44 to your computer and use it in GitHub Desktop.
# Bash initialization for interactive non-login shells and
# for remote shells (info "(bash) Bash Startup Files").
# Export 'SHELL' to child processes. Programs such as 'screen'
# honor it and otherwise use /bin/sh.
export SHELL
if [[ $- != *i* ]]
then
# We are being invoked from a non-interactive shell. If this
# is an SSH session (as in "ssh host command"), source
# /etc/profile so we get PATH and other essential variables.
[[ -n "$SSH_CLIENT" ]] && source /etc/profile
# Don't do anything else.
return
fi
# Source the system-wide file.
source /etc/bashrc
# Adjust the prompt depending on whether we're in 'guix environment'.
if [ -n "$GUIX_ENVIRONMENT" ]
then
PS1='\u@\h \w [env]\$ '
else
PS1='\u@\h \w\$ '
fi
alias ls='ls -p --color=auto'
alias ll='ls -l'
alias grep='grep --color=auto'
export PATH=$PATH:~/.emacs.d/bin
export GUIX_PROFILE=/home/thor/.guix-profile
. $GUIX_PROFILE/etc/profile
export PATH=$PATH:$GUIX_PROFILE/etc/profile
export XDG_CONFIG_HOME="$HOME/.config"
# Apparently, npm doesn't install package to the right place.
NPM_PACKAGES="$HOME/.npm-packages"
export PATH="$PATH:$NPM_PACKAGES/bin"
export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man"
export GEM_PATH="$HOME/.gem-packages"
export GEM_HOME=$GEM_PATH
export GEM_SPEC_CACHE="$GEM_HOME/specs"
mkdir -p $GEM_PATH
mkdir -p $GEM_SPEC_CACHE
#gem env
export PATH="$PATH:$GEM_PATH/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment