dotfiles/any/bash/.bash_aliases

20 lines
946 B
Bash

alias fixnasperms="sudo bash -c 'find . -type d -exec chmod 775 {} \\; && find . -type f -exec chmod 664 {} \\; && chown -R 2000:2000 .'"
# alias wordgrinder="gnome-terminal --profile=wordgrinder -t wordgrinder --full-screen -- wordgrinder"
alias wordgrinder="kitty -c ~/.wordgrinder/kitty.conf --session ~/.wordgrinder/kitty.session --start-as=fullscreen"
alias vim=nvim
alias tmux="tmux -2"
alias ssh="TERM=xterm ssh"
alias pyenv3="pyenv shell 3.6.12"
alias git="GPG_TTY=\$(tty) git"
alias gitfixlast="git rebase -i \$(git log | grep '^commit ' | head -3 | tail -1 | cut -d' ' -f2) && git push -f"
alias gitcommitfix="git add -u && git commit -m f && gitfixlast"
alias kubectl-ns="kubectl get namespaces --no-headers | awk '{print \$1}' | xargs -I {} bash -c -- echo {} && kubectl -n {}"
alias hugo="docker run --rm -it -v \$(pwd):/src -p 1313:1313 klakegg/hugo:latest"
if [ -f ~/.bash_aliases.local ]
then
. "$HOME/.bash_aliases.local"
fi