improvments

This commit is contained in:
creme 2021-07-28 09:26:32 +02:00
parent 7da7d864f7
commit 95de528094
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
3 changed files with 15 additions and 11 deletions

View File

@ -1,10 +1,3 @@
#
# User specific exports
#
export EDITOR="nano"
export PAGER="most"
#
# User specific aliases and functions
#
@ -35,7 +28,7 @@ alias twtxt_mentions="curl 'https://twtxt.envs.net/api/plain/mentions'"
twtxt_mention_url() { curl 'https://twtxt.envs.net/api/plain/mentions?url='"$1" ; }
#
# envs.net
# envs.sh
#
0file() { curl -F"file=@$1" https://envs.sh ; }
0url() { curl -F"url=$1" https://envs.sh ; }

View File

@ -1,7 +1,9 @@
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
# clear home directory tmp folder
#[ -d ~/tmp ] && rm -r ~/tmp/*
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

View File

@ -20,14 +20,23 @@ fi
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
#
# User specific exports
#
## defaults ##
## defaults
export EDITOR="nano"
export PAGER="most"
# gpg
export GPG_TTY=$(tty)
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
#gpg-connect-agent updatestartuptty /bye > /dev/null
# envs
export PATH=$PATH:/envs/bin
# bbj
export BBJ_USER=$USER
@ -38,7 +47,7 @@ export PATH=$GOROOT/bin:$PATH
# hugo cachedir
export HUGO_CACHEDIR="/tmp/hugo_cache_$USER"
# byobu
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..