skel/.profile

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-08-01 20:16:38 +00:00
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
2020-01-04 20:53:25 +00:00
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
2019-08-01 20:16:38 +00:00
fi
# set PATH so it includes user's private bin if it exists
2020-01-04 20:53:25 +00:00
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
2019-08-01 20:16:38 +00:00
# set PATH so it includes user's private bin if it exists
2020-01-04 20:53:25 +00:00
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
2019-08-01 20:16:38 +00:00
2019-08-08 23:06:07 +00:00
## defaults ##
export GPG_TTY=$(tty)
# envs
export PATH=$PATH:/envs/bin
2019-08-25 12:54:35 +00:00
# bbj
2019-08-08 23:06:07 +00:00
export BBJ_USER=$USER
2019-09-03 20:26:15 +00:00
# latest GO
2019-09-03 23:53:07 +00:00
export GOROOT=/usr/local/go
2019-09-22 11:06:20 +00:00
export PATH=$GOROOT/bin:$PATH
2019-09-03 20:26:15 +00:00
2020-01-04 20:53:25 +00:00
2019-08-01 20:16:38 +00:00
if [[ ! $TERM =~ screen ]] || [[ ! $TMUX =~ tmux ]]; then
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
# when we use `byobu-disable` we have an emtpy if..
true
2019-08-01 20:16:38 +00:00
fi