Browse Source

cool binds

master
Taylor Bockman 4 years ago
parent
commit
e7a15c17f2
  1. 27
      dotfiles/bash/bashrc

27
dotfiles/bash/bashrc

@ -80,8 +80,6 @@ if [[ "$OS_TYPE" != "gnu-linux" ]]; then
alias python='python3' alias python='python3'
fi fi
alias vim='nvim'
# rlwrap provides readline wrapping for programs. # rlwrap provides readline wrapping for programs.
# This alias makes the SBCL REPL usable. # This alias makes the SBCL REPL usable.
alias sbcl='rlwrap sbcl' alias sbcl='rlwrap sbcl'
@ -96,6 +94,29 @@ alias gitd='git diff'
alias k8='kubectl' 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 --------------# # -------------- END ALIASES --------------#
@ -119,7 +140,7 @@ if which go > /dev/null; then export GOPATH=$HOME/projects/go; fi
# ----------------------------------------- INITIALIZATIONS -------------------------------------- # # ----------------------------------------- INITIALIZATIONS -------------------------------------- #
if which pyenv-virtualenv-init > /dev/null; then if which pyenv-virtualenv-init > /dev/null; then
eval "$(pyenv init -)" eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
fi fi

Loading…
Cancel
Save