Skip to content

Commit

Permalink
A bit of housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed May 15, 2017
1 parent 07aa94d commit d8ea600
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
7 changes: 1 addition & 6 deletions system/.alias
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ alias l="ls -lahA $LS_COLORS $LS_TIMESTYLEISO $LS_GROUPDIRSFIRST"
alias ll="ls -lA $LS_COLORS"
alias lt="ls -lhAtr $LS_COLORS $LS_TIMESTYLEISO $LS_GROUPDIRSFIRST"
alias ld="ls -ld $LS_COLORS */"
alias lpm="stat -c '%a %n' *"

unset LS_COLORS LS_TIMESTYLEISO LS_GROUPDIRSFIRST

Expand All @@ -52,7 +53,6 @@ alias tree2="tree -d -L 2"

alias cpwd="pwd|tr -d '\n'|pbcopy"


# npm

alias ni="npm install"
Expand All @@ -70,11 +70,6 @@ for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
alias "$method"="lwp-request -m '$method'"
done

# Recursively remove Apple meta files

alias cleanupds="find . -type f -name '*.DS_Store' -ls -exec /bin/rm {} \;"
alias cleanupad="find . -type d -name '.AppleD*' -ls -exec /bin/rm -r {} \;"

# Miscellaneous

alias quit="exit"
Expand Down
5 changes: 5 additions & 0 deletions system/.alias.macos
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ alias ql="qlmanage -p &>/dev/null"
alias desktopshow="defaults write com.apple.finder CreateDesktop -bool true && killfinder"
alias desktophide="defaults write com.apple.finder CreateDesktop -bool false && killfinder"

# Recursively remove Apple meta files

alias cleanupds="find . -type f -name '*.DS_Store' -ls -exec /bin/rm {} \;"
alias cleanupad="find . -type d -name '.AppleD*' -ls -exec /bin/rm -r {} \;"

# Clean up LaunchServices to remove duplicates in the "Open With" menu

alias lscleanup="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder"
Expand Down
14 changes: 5 additions & 9 deletions system/.fasd
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# https://github.com/clvv/fasd#install

if [[ $(is-executable fasd) ]]; then

fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
. "$fasd_cache"
unset fasd_cache

fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
. "$fasd_cache"
unset fasd_cache

0 comments on commit d8ea600

Please sign in to comment.