Add some usefull scripts

This commit is contained in:
Tim
2020-01-22 17:45:59 +01:00
parent 55329b15f9
commit 5955e04a32
5 changed files with 501 additions and 4 deletions

View File

@ -74,3 +74,12 @@ alias folders="find . -maxdepth 1 -type d -print | xargs du -sk | sort -rn"
# Show all disks, partitions with sizes
alias lds='sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL'
alias ltd='docker exec -it lt-dev /bin/bash'
alias lt-dd-cms='lt-dd project:execute -p mpm-cms -n -- '
alias lt-dd-web='lt-dd project:execute -p mpm-website -n -- '
alias lt-dd-w2='lt-dd project:execute -p wrqr2 -n -- '
alias gcp='git cherry-pick'
alias fm='xinput set-prop 9 "libinput Scroll Method Enabled" 0, 0, 1 && xinput set-prop 9 "libinput Button Scrolling Button" 10'
alias gdq='screen -d -m streamlink https://www.twitch.tv/gamesdonequick best -p mpv'

View File

@ -11,16 +11,16 @@ esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
#HISTCONTROL=ignoreboth
HISTCONTROL=erasedups
# append to the history file, don't overwrite it
shopt -s histappend
#shopt -s histappend
#C for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000
#bla
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
@ -97,7 +97,7 @@ if [ "$color_prompt" = yes ]; then
# PS1FRONT="$HC$FMAG[ $FGRN${debian_chroot:+($debian_chroot)}\u$FYEL@$FGRN\h$FYEL: $FBLE\w" #
# PS1FRONT="$FMAG[ $FGRN\u$FYEL@$FGRN\h$FYEL"
# PS1FRONT="$FMAG[ $FBLK$BGRN$FBLK \u $FGRN$BBLK$FBLK$BYEL$FBLK \h $FYEL$BBLK$FBLK$BBLE$FBLK \w $FBLE$BBLK "
if [ "$LC_PUTTY_FONT" = "powerline" ]; then
if [ "$LC_PUTTY_FONT" = "powerline" ] || [ "$XDG_CURRENT_DESKTOP" = "KDE" ]; then
PS1FRONT="$FBLK$BGRN$FBLK \h $FGRN$BYEL$FBLK \u $FYEL$BBLE$FBLK ${PYTHON_VIRTUALENV}\w $BBLK"
PS1BACK="$FBLE$BBLK$RS"
else
@ -170,3 +170,22 @@ if ! shopt -oq posix; then
. /etc/bash_completion
fi
fi
export PATH="$HOME/LetsTalk/projects/devdocker/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
KUBECONFIG=""
for kubeconfig in $HOME/.kube/config*; do
if [ -z $KUBECONFIG ]
then
KUBECONFIG=$kubeconfig
else
KUBECONFIG=$KUBECONFIG:$kubeconfig
fi
done
export KUBECONFIG
#kubectx and kubens
export PATH=~/.kubectx:$PATH