-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.aliases
53 lines (38 loc) · 1.28 KB
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
# NAVIGATION
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# COMMON DIRECTORIES
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias dc="cd ~/Documents"
alias m="cd ~/Documents/mappedin"
alias p="cd ~/Documents/projects"
alias home="cd ~"
# WORK DIRECTORIES
alias tri="cd /Users/charlie/Documents/mappedin/tricorder"
# GIT
alias g="git"
alias gs="git status"
alias gd="git diff"
alias gb="git branch"
alias gc="git checkout"
alias gp="git push"
alias gm="git checkout master"
alias gl="git log --graph --all"
# EASIER DOTFILE EDITING
alias aliases="nano ~/.aliases && . ~/.aliases"
alias bashrc="nano ~/.bashrc && . ~/.bashrc"
alias bashprofile="nano ~/.bash_profile && . ~/.bash_profile"
# HELPFUL TERMINAL ALIASES
alias c="clear"
alias python="python3"
alias path='echo -e ${PATH//:/\\n}'
# SHOW/HIDE HIDDEN FILES
alias showhidden="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# SHOW/HIDE DESKTOP ICONS
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"