mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Merge remote-tracking branch 'origin/master'
Conflicts: zsh/history
This commit is contained in:
commit
dd9680f21e
3 changed files with 34 additions and 4 deletions
|
|
@ -10,4 +10,7 @@ shopt -s histappend
|
|||
# ignore sequential duplicates
|
||||
export HISTCONTROL=ignoreboth
|
||||
|
||||
# more!
|
||||
export HISTSIZE=10000
|
||||
|
||||
# vim: ft=sh
|
||||
|
|
|
|||
27
osx
27
osx
|
|
@ -1,22 +1,47 @@
|
|||
# see https://github.com/mathiasbynens/dotfiles/blob/master/.osx
|
||||
#!/bin/sh
|
||||
#
|
||||
# for more, see https://github.com/mathiasbynens/dotfiles/blob/master/.osx
|
||||
|
||||
#sudo tmutil disablelocal
|
||||
|
||||
# disable rubberbanding, but not vanishing scrollbars
|
||||
defaults write -g NSScrollViewRubberbanding -bool false
|
||||
|
||||
# fix font with external monitor
|
||||
# http://apple.stackexchange.com/questions/19468/terminal-text-size-different-when-connected-to-external-monitor
|
||||
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
|
||||
|
||||
# disable new windows zooming in
|
||||
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
|
||||
|
||||
defaults write NSGlobalDomain NSWindowResizeTime 0.15
|
||||
|
||||
#
|
||||
defaults write com.apple.dock expose-animation-duration -float 0.15
|
||||
|
||||
# switch to repeat keys on long key presses
|
||||
defaults write -g ApplePressAndHoldEnabled -bool false
|
||||
|
||||
# open disk images automatically
|
||||
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
|
||||
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
|
||||
|
||||
# stop polluting network shares
|
||||
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||
|
||||
# disable mail animations
|
||||
defaults write com.apple.Mail DisableReplyAnimations -bool true
|
||||
defaults write com.apple.Mail DisableSendAnimations -bool true
|
||||
|
||||
# switch to not remembering windows
|
||||
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
|
||||
|
||||
# show user's Library
|
||||
chflags nohidden ~/Library
|
||||
|
||||
# default to UTF-8 instead of MacRoman (http://superuser.com/a/82194)
|
||||
#echo "0x08000100:0" > ~/.CFUserTextEncoding
|
||||
|
||||
# restart all possibly affected app
|
||||
for app in Safari Dock Mail Finder; do killall $app; done
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
# ignore sequential duplicates
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_ignore_space
|
||||
setopt hist_reduce_blanks
|
||||
setopt append_history
|
||||
setopt hist_verify
|
||||
|
||||
# keep 1000 lines of history within the shell and save it to ~/.zsh_history:
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
HISTFILE=~/.zsh_history
|
||||
|
||||
# vim: ft=zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue