Skip to content

Instantly share code, notes, and snippets.

@PabloHiro
Last active March 14, 2024 12:05
Show Gist options
  • Save PabloHiro/aa127b73962a38f121ed085bb06ad387 to your computer and use it in GitHub Desktop.
Save PabloHiro/aa127b73962a38f121ed085bb06ad387 to your computer and use it in GitHub Desktop.
My bashrc
# Custom environment variables
export GIT_EDITOR=/usr/bin/vim
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
# Command for git root
git config --global alias.root "rev-parse --show-toplevel"
# Custom aliases
alias l='ls'
alias ll='ls -al'
alias ls='ls -F --color=auto --show-control-chars'
alias k='kubectl'
alias cdg='cd $(git root)'
# Custom functions
function foralld() {
for D in $(find . -maxdepth 1 -mindepth 1 -type d); do (echo $D && cd $D && "$@"); done
}
function veleroc() { velero -n openshift-adp $@; }
export -f foralld
export -f veleroc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment