skel/.profile

56 lines
1.4 KiB
Plaintext
Raw Permalink 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
2021-07-28 07:26:32 +00:00
#
# User specific exports
#
2019-08-08 23:06:07 +00:00
2021-07-28 07:26:32 +00:00
## defaults
export EDITOR="nano"
export PAGER="most"
# gpg
2019-08-08 23:06:07 +00:00
export GPG_TTY=$(tty)
2020-05-16 07:21:18 +00:00
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
#gpg-connect-agent updatestartuptty /bye > /dev/null
2019-08-08 23:06:07 +00:00
# envs
export PATH=$PATH:/envs/bin
2021-07-28 07:26:32 +00:00
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
2021-01-23 16:22:36 +00:00
# hugo cachedir
2021-01-27 22:02:26 +00:00
export HUGO_CACHEDIR="/tmp/hugo_cache_$USER"
2021-01-23 16:22:36 +00:00
2021-07-28 07:26:32 +00:00
# byobu
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