added sql plush stuff

master
Michael Ochmann 1 year ago
parent 8c4da6fe9a
commit 88f11cbb18
  1. 33
      .bashrc

@ -42,6 +42,7 @@ export PATH="/usr/local/opt/ncurses/bin:$PATH"
export PATH="/usr/local/bin:/Users/mochmann/.cargo/bin:$PATH"
#export PATH="/usr/local/Cellar:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="/usr/texbin:$PATH"
export PATH="$PATH:/Users/mochmann/.dotnet/tools"
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
@ -51,6 +52,10 @@ export CC=clang
export CXX=clang++
export PATH="/usr/local/lib/python3.9/site-packages:$PATH"
export PATH="/usr/local/Cellar/mono/6.12.0.122_1/bin/:$PATH"
export PATH="~/.composer/vendor/bin:$PATH"
export PATH="~/apps:$PATH"
export PATH="~/apps/instantclient:$PATH"
if [[ "$OSTYPE" == "darwin"* ]]
then
export PATH="/Applications/Emacs.app/Contents/MacOS:$PATH"
@ -293,21 +298,21 @@ bash_plugin() {
fi
}
go() {
DIRS=($(cat -n ~/bin/go_dirs))
#go() {
# DIRS=($(cat -n ~/bin/go_dirs))
select=$(dialog --menu "Go to..." 20 100 16 "${DIRS[@]}" 3>&1 1>&2 2>&3)
# select=$(dialog --menu "Go to..." 20 100 16 "${DIRS[@]}" 3>&1 1>&2 2>&3)
dialog --clear
if [ $? -ne 0 ]
then
exit 1
fi
# dialog --clear
# if [ $? -ne 0 ]
# then
# exit 1
# fi
p="${DIRS[$select * 2 - 1]}"
p="${p/#\~/$HOME}"
cd $p
}
# p="${DIRS[$select * 2 - 1]}"
# p="${p/#\~/$HOME}"
# cd $p
#}
ipcur() {
wget "https://ip.mike-ochmann.de/plain" -O - -q
@ -334,6 +339,7 @@ export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
export TNS_ADMIN=/Users/mochmann/oraclesql
# *ENV STUFF
loadenvs() {
@ -354,7 +360,7 @@ alias l="ls -CF"
alias histgrep='history | grep $@'
alias batt="pkill -f indicator-power-service"
alias pgcp="/home/miko/bash/pgcopy"
alias sqlplus="rlwrap -c sqlplus"
alias sqlplus="rlwrap -c sqlplus db070/Ru6fuyuDi2@pcork1"
alias atvim="vim"
alias nano="vim"
alias fullupdate="sudo apt update && sudo apt upgrade && sudo apt dist-upgrade"
@ -364,6 +370,7 @@ 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 mime="file --mime-type"
# 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 ]]

Loading…
Cancel
Save