aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-02-19 03:47:19 -0700
committerkatherine <shmibs@shmibbles.me>2017-02-19 03:47:19 -0700
commit4cd93b09b3a179515630114078739564a35af38d (patch)
tree9d4b873cca07f62f457acd82df0c433bd2af1535 /.zshrc-linux
parent01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0 (diff)
downloaddotfiles-4cd93b09b3a179515630114078739564a35af38d.tar.gz
move remaining funcs from .zshrc
everything should be modular now also, cleaned up make-gif to properly parse arguments and check things
Diffstat (limited to '.zshrc-linux')
-rw-r--r--.zshrc-linux27
1 files changed, 0 insertions, 27 deletions
diff --git a/.zshrc-linux b/.zshrc-linux
index 904ee51..f78c226 100644
--- a/.zshrc-linux
+++ b/.zshrc-linux
@@ -7,30 +7,3 @@ alias ls='ls --color=auto'
alias ll='ls -lh --color=auto'
export PAGER='less -R'
-
-################## 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
-}