diff --git a/.zprezto/modules/utility/init.zsh b/.zprezto/modules/utility/init.zsh index 1cd0c68..9377e11 100644 --- a/.zprezto/modules/utility/init.zsh +++ b/.zprezto/modules/utility/init.zsh @@ -87,6 +87,7 @@ else fi alias ls="${aliases[ls]:-ls} -A" +alias lss="${aliases[ls]:-ls}" alias l='ls -lAh' # Lists in one column, hidden files. alias ll='ls -lh' # Lists human readable sizes. alias lr='ll -R' # Lists human readable sizes, recursively. diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias index d0f9f04..841ed65 100644 --- a/.zprezto/runcoms/zalias +++ b/.zprezto/runcoms/zalias @@ -40,7 +40,8 @@ alias .gs='.g status -uno' alias .gp='.g commit -am "auto" && .g push' # list disk usage -alias dus="du -Hh -d 0 * .* | gsort -h" +# alias dus="du -Hh -d 0 * .* | gsort -h" +alias dus="ncdu" alias p="perl -pe" @@ -82,4 +83,10 @@ function dcp() { git commit -m "$arg" || exit git push || exit +} + +function strip-tags() { + find . -type f -name '*.mp3' \ + | tr '\n' '\0' \ + | xargs -0 -n1 mid3v2 --delete-frames=TXXX,USLT,TIPL,UFID,APIC,TBPM,TCMP,TDOR,TDRC,TLAN,TMED,TPOS,TPUB,TRCK,TCON } \ No newline at end of file diff --git a/.zprezto/runcoms/zprofile b/.zprezto/runcoms/zprofile index 29c8030..c061fde 100644 --- a/.zprezto/runcoms/zprofile +++ b/.zprezto/runcoms/zprofile @@ -17,9 +17,9 @@ fi # Editors # -export EDITOR='nano' -export VISUAL='nano' -export PAGER='less' +export EDITOR='vim' +export VISUAL='vim' +export PAGER='most' # # Language @@ -73,7 +73,3 @@ fi TMPPREFIX="${TMPDIR%/}/zsh" -# Setting PATH for Python 3.5 -# The orginal version is saved in .zprofile.pysave -PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" -export PATH diff --git a/.zprezto/runcoms/zshrc b/.zprezto/runcoms/zshrc index 16dfae1..719a710 100644 --- a/.zprezto/runcoms/zshrc +++ b/.zprezto/runcoms/zshrc @@ -83,7 +83,7 @@ function latest() { # ----------------------------------- END ALIASES -------------------------------------------------- export EDITOR=/usr/bin/vim -export PATH=$HOME/brew/bin:$HOME/bin:$PATH +export PATH=$HOME/brew/sbin:$HOME/brew/bin:$HOME/bin:$PATH export DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-8.0/lib:/usr/local/cuda/lib" # added by travis gem