# curl https://phus.lu/bashrc | grep ^# | tail -n +2 | cut -b3- | grep ^curl | bash -xe && . ~/.bashrc # curl https://phus.lu/bashrc | tee -a ~/.bashrc # curl -fo ~/.vimrc https://phus.lu/vimrc # curl -fo ~/.z.sh https://cdn.jsdelivr.net/gh/rupa/z@master/z.sh # curl -fo ~/.git-prompt.sh https://cdn.jsdelivr.net/gh/git/git@master/contrib/completion/git-prompt.sh # curl -fo ~/.git-completion.bash https://cdn.jsdelivr.net/gh/git/git@master/contrib/completion/git-completion.bash # curl -fo /tmp/vimcat https://raw.githubusercontent.com/vim-scripts/vimcat/master/vimcat && sudo mv /tmp/vimcat /usr/bin && sudo chmod +x /usr/bin/vimcat # sudo apt install -y bash-completion htop jq lrzsz ngrep pv rsync tmux vim wget chrony alias ls='ls -p --color=auto' alias ll='ls -lF' alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' alias tailf='tail -F' alias htpdate='sudo date -s "$(curl -sSfI 1.1.1.1 | grep ^Date | cut -b 7-)"' alias k=kubectl alias ctr='ctr -n k8s.io' export LC_ALL=en_US.UTF-8 export HISTTIMEFORMAT="%Y-%m-%d %T " export HISTCONTROL=ignoreboth export HISTSIZE=100000 export HISTFILESIZE=2000000 export PS1='\[\e[1;32m\]\u@\H\[\e[0;33m\] \w \[\e[1;34m\]\$\[\e[0m\] ' if [ "${SHELL##*/}" = "bash" ]; then if [[ "screen-256color xterm-256color xterm-color xterm screen rxvt cygwin" == *"$TERM"* ]]; then eval $(SHELL=/bin/bash $(type -p dircolors)) bind '"\e[B": history-search-forward' bind '"\e[A": history-search-backward' set bell-style none set show-all-if-ambiguous on set completion-ignore-case on shopt -s checkwinsize histappend export PS1='\[\e]0;\h:\w\a\]\n\[\e[1;32m\]\u@\H\[\e[0;33m\] \w \[\e[0m[\D{%H:%M:%S}]\n\[\e[1;$((31+3*!$?))m\]\$\[\e[0m\] ' if grep --version >/dev/null 2>&1 ; then alias grep='grep --color'; fi for f in /usr/share/bash-completion/bash_completion ~/.z.sh ~/.git-completion.bash ~/.git-prompt.sh; do if [ -f $f ]; then source $f; fi; done if type -p __git_ps1; then export PS1='\[\e]0;\h:\w\a\]\n\[\e[1;32m\]\u@\H\[\e[0;33m\] \w$(__git_ps1 " (%s)") \[\e[0m[\D{%H:%M:%S}]\n\[\e[1;$((31+3*!$?))m\]\$\[\e[0m\] '; fi fi fi export PATH=~/.local/bin:$GOPATH/bin:$GOROOT/bin:$PATH