1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-22 01:37:14 +01:00

aliases in extra file, remove some osx stuff

This commit is contained in:
Matthias Kretschmann 2012-07-15 05:26:24 +02:00
parent 0c5a680bf2
commit e5a370ffaa
5 changed files with 33 additions and 26 deletions

22
aliases Normal file
View File

@ -0,0 +1,22 @@
# ----------------------------------------------------------------------
# ALIASES
# ----------------------------------------------------------------------
alias ll='ls -la'
# Get into some servers FAST. Server, user & port are in .ssh/config
alias krlc='ssh kremalicious'
alias mlublogs='ssh mlublogs'
# Terminal needs more Espresso
alias esp="open -a Espresso"
# Update All The Things
alias update='sudo softwareupdate -i -a; sudo gem update --system; sudo gem update; brew update; brew upgrade; npm update -g'
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false && killall Finder"

View File

@ -12,7 +12,7 @@
# Load ~/.private, ~/.bash_prompt
# ----------------------------------------------------------------------
for file in ~/.{private,bash_prompt}; do
for file in ~/.{bash_prompt,aliases,private}; do
[ -r "$file" ] && source "$file"
done
unset file
@ -21,6 +21,13 @@ unset file
# SHELL OPTIONS
# ----------------------------------------------------------------------
# Append to the Bash history file, rather than overwriting it
shopt -s histappend
# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"
# fuck that you have new mail shit
unset MAILCHECK
@ -40,19 +47,6 @@ ANDROID_HOME="/usr/local/Cellar/android-sdk/r20"
export PATH
# ----------------------------------------------------------------------
# ALIASES
# ----------------------------------------------------------------------
alias ll='ls -la'
# Get into some servers FAST. Server, user & port are in .ssh/config
alias krlc='ssh kremalicious'
alias mlublogs='ssh mlublogs'
# Terminal needs more Espresso
alias esp="open -a Espresso"
# Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
alias update='sudo softwareupdate -i -a; sudo gem update --system; sudo gem update; brew update; brew upgrade; npm update -g'
# ----------------------------------------------------------------------
# LSCOLORS
# ----------------------------------------------------------------------

View File

@ -14,7 +14,7 @@
# dotfiles directory
dir=~/.dotfiles
# list of files/folders to symlink in homedir
files="bashrc bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
files="aliases bashrc bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
# ----------------------------------------------------------------------
# change to the dotfiles directory

11
osx
View File

@ -27,15 +27,6 @@ defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
###############################################################################
# Screen #
###############################################################################
# Save screenshots to the desktop
defaults write com.apple.screencapture location -string "$HOME/Desktop"
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
###############################################################################
# Finder #
@ -73,7 +64,7 @@ defaults write com.apple.finder WarnOnEmptyTrash -bool false
chflags nohidden ~/Library
###############################################################################
# Dock & hot corners #
# Dock #
###############################################################################
# Show indicator lights for open applications in the Dock

View File

@ -14,7 +14,7 @@
# dotfiles directory
dir=~/.dotfiles
# list of files/folders to symlink in homedir
files="bashrc bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
files="aliases bashrc bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
# ----------------------------------------------------------------------
# change to the dotfiles directory