############################################
# ALIASES
############################################

# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."

# shortcuts
alias dt "cd ~/Desktop"
alias dl "cd ~/Downloads"
alias p "cd ~/Projects"
alias f "cd ~/Projects/fathom"

# listings
alias l "ls -laF"

# git
alias gs "git status -s"
alias ga "git add"
alias gc "git commit"

# enable aliases to be sudo’ed
alias sudo "sudo "

# show/hide hidden files in Finder
alias show "defaults write com.apple.finder AppleShowAllFiles -bool true and killall Finder"
alias hide "defaults write com.apple.finder AppleShowAllFiles -bool false and killall Finder"

# show/hide desktop (useful when presenting)
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true and killall Finder"
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false and killall Finder"


############################################
# FUNCTIONS
############################################

# create a new directory and cd into it
function mkd
	mkdir -p $argv; and cd $argv
end

############################################
# ALIASES
############################################

# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."

# shortcuts
alias dt "cd ~/Desktop"
alias dl "cd ~/Downloads"
alias p "cd ~/Projects"
alias f "cd ~/Projects/fathom"

# listings
alias l "ls -laF"

# git
alias gs "git status -s"
alias ga "git add"
alias gc "git commit"

# enable aliases to be sudo’ed
alias sudo "sudo "

# show/hide hidden files in Finder
alias show "defaults write com.apple.finder AppleShowAllFiles -bool true; and killall Finder"
alias hide "defaults write com.apple.finder AppleShowAllFiles -bool false; and killall Finder"

# show/hide desktop (useful when presenting)
alias showdesktop "defaults write com.apple.finder CreateDesktop -bool true; and killall Finder"
alias hidedesktop "defaults write com.apple.finder CreateDesktop -bool false; and killall Finder"


############################################
# FUNCTIONS
############################################

# create a new directory and cd into it
function mkd
	mkdir -p $argv; and cd $argv
end

Fix aliases to work with fish
Fix aliases to work with fish

artisologic/dotfiles