[zsh] Update shell init: rc
This commit is contained in:
parent
b09d523218
commit
c30b46a88b
26 changed files with 479 additions and 462 deletions
38
zsh/func/init_rc_darwin
Normal file
38
zsh/func/init_rc_darwin
Normal file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
autoload binary_exists
|
||||
|
||||
function init_rc_darwin
|
||||
{
|
||||
shell-log 'Initializing Interactive Environment for macOS'
|
||||
|
||||
alias acls='command ls -le'
|
||||
|
||||
# These things might have been installed by Homebrew, and I like the GNU
|
||||
# versions better.
|
||||
binary_exists gdircolors && alias dircolors='gdircolors'
|
||||
binary_exists gfind && alias find='gfind'
|
||||
binary_exists gnuindent && alias indent='gnuindent'
|
||||
|
||||
binary_exists gls && init_rc_configure_ls `which gls`
|
||||
|
||||
# ldd doesn't exist on OS X, but otool -L does the same thing.
|
||||
alias ldd='otool -L'
|
||||
|
||||
local sounds=/System/Library/Sounds
|
||||
alias glass="afplay $sounds/Glass.aiff"
|
||||
alias funk="afplay $sounds/Funk.aiff"
|
||||
|
||||
autoload +X darwin_init_once
|
||||
autoload +X darwin_icloud_drive_path
|
||||
autoload +X darwin_configure_screenshots_directory
|
||||
|
||||
# Open a file/folder in Finder
|
||||
alias reveal='open -R'
|
||||
|
||||
alias -s app='open'
|
||||
alias -s xcodeproj='open -a Xcode'
|
||||
}
|
||||
|
||||
init_rc_darwin "$@"
|
Loading…
Add table
Add a link
Reference in a new issue