aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-freebsd
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-08-17 00:46:19 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-08-17 00:46:19 -0700
commit3ee2e833d6e423ced02c182a55c35b9a4bc3c687 (patch)
tree1ba8b1b86cab41c2d63ab8697fdbdfe6e3b24f51 /.zshrc-freebsd
parenteb811856e254141959eb6afad77bb0d119172b70 (diff)
downloaddotfiles-3ee2e833d6e423ced02c182a55c35b9a4bc3c687.tar.gz
clean zsh stuff
Diffstat (limited to '.zshrc-freebsd')
-rw-r--r--.zshrc-freebsd28
1 files changed, 1 insertions, 27 deletions
diff --git a/.zshrc-freebsd b/.zshrc-freebsd
index 62b19f0..5d20ab1 100644
--- a/.zshrc-freebsd
+++ b/.zshrc-freebsd
@@ -1,32 +1,6 @@
################### ALIASES ##################
+
alias ls='ls -G'
alias ll='ls -lGh'
alias grep='grep --color=auto'
alias diff='colordiff'
-
-################## FUNCTIONS ##################
-
-# bits to human readable value
-b2h() {
- local suffixes=( 'B' 'K' 'M' 'G' 'T' 'P' 'E' 'Z' 'Y' )
- local sindex=1
- local val=$1
- [[ -z $(echo $1 | grep "^[0-9]*$") ]] && read val
-
- while [[ $(echo $val / 1024 | bc) -ne 0 ]]; do
- val=$(echo "scale=2; $val / 1024" | bc)
- let sindex=sindex+1
- done
-
- echo "${val}${suffixes[$sindex]}"
-}
-
-# ignore non-tracked files
-git() {
- if [[ $# -gt 0 ]] && [[ "$1" == "status" ]]; then
- shift
- $(which -p git) status -uno "$@"
- else
- $(which -p git) "$@"
- fi
-}