From e7a15c17f289cbb6cc2a75bb374c6836cbb9ed64 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 25 Sep 2020 00:44:33 -0700 Subject: [PATCH] cool binds --- dotfiles/bash/bashrc | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index cb60cab..6d2c71c 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -80,8 +80,6 @@ if [[ "$OS_TYPE" != "gnu-linux" ]]; then alias python='python3' fi -alias vim='nvim' - # rlwrap provides readline wrapping for programs. # This alias makes the SBCL REPL usable. alias sbcl='rlwrap sbcl' @@ -96,6 +94,29 @@ alias gitd='git diff' alias k8='kubectl' +# Good overrides + +# Don't nuke the computer +alias rm='rm -i' + +# Better ls - lists more information for each file +alias ll='ls -lh' + +# Human readable ls for the current directory +if [[ "$OS_TYPE" != "gnu-linux" ]]; then + # OS X lt + alias lt='du -sh * | sort -h' +else + alias lt='ls --human-readable --size -1 -S --classify' +fi + + +# Count files in the current directory +alias count='find . -type f | wc -l' + +# Generate sha1 hashes on the fly +alias sha1='openssl sha1' + # -------------- END ALIASES --------------# @@ -119,7 +140,7 @@ if which go > /dev/null; then export GOPATH=$HOME/projects/go; fi # ----------------------------------------- INITIALIZATIONS -------------------------------------- # -if which pyenv-virtualenv-init > /dev/null; then +if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" fi