made bash go brrrrrr

master
Michael Ochmann 2 years ago
parent c07d193a6a
commit d4de8de797
  1. 32
      .bashrc

@ -11,6 +11,9 @@
# #
################################################################################
#PS4='+ $(/usr/local/bin/gdate "+%s.%N")\011 '
#exec 3>&2 2>/tmp/bashstart.$$.log
#set -x
# Do not use this .bashrc if bash is not running in interactive mode
case $- in
@ -306,7 +309,12 @@ go() {
cd $p
}
trap bash_plugin DEBUG
ipcur() {
wget "https://ip.mike-ochmann.de/plain" -O - -q
echo ""
}
#trap bash_plugin DEBUG
# ENVIRONMENT
@ -328,14 +336,16 @@ export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
# *ENV STUFF
if [ -x /usr/local/bin/anyenv ]
then
eval "$(anyenv init -)"
fi
if [ -x /usr/local/bin/rbenv ]
then
eval "$(rbenv init -)"
fi
loadenvs() {
if [ -x /usr/local/bin/anyenv ]
then
eval "$(anyenv init -)"
fi
if [ -x /usr/local/bin/rbenv ]
then
eval "$(rbenv init -)"
fi
}
# ALIASES
alias ll="ls -lisah"
@ -354,7 +364,6 @@ alias reload="source ~/.bashrc"
alias editrc="vim ~/.bashrc && reload"
alias shutdowncause="log show --predicate 'eventMessage contains \"Previous shutdown cause\"' --last 24h"
alias gl="glab"
alias ipcur="echo $(wget "https://ip.mike-ochmann.de/plain" -O - -q)"
# PROPELLER TMUX SSH
#if [ -z "$TMUX" ] && [ $(dpkg-query -W -f='${Status}' tmux 2>/dev/null | grep -c "ok installed") -eq 1 ] && [ -n "$SSH_TTY" ] && [ -z "$NO_AUTO_TMUX" ] && [[ $- =~ i ]]
@ -368,3 +377,6 @@ if [ -f "$HOME/.cargo/env" ]
then
. "$HOME/.cargo/env"
fi
#set +x
#exec 2>&3 3>&-

Loading…
Cancel
Save