-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_aliases
More file actions
87 lines (68 loc) · 2.92 KB
/
.bash_aliases
File metadata and controls
87 lines (68 loc) · 2.92 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#####Aliases##########
## Programming Aliases (aliases which help development)
alias bind-gits='sudo bindfs ~/gits/ /mnt/unencrypted/'
alias bind-programming='sudo bindfs ~/Programming/ /mnt/programming/unencrypted/'
alias start-android-server='adb forward tcp:9222 localabstract:chrome_devtools_remote' # start the Android remote debugging service for Chrome
alias psysh='~/.composer/vendor/psy/psysh/bin/psysh' # PsySH is an amazing PHP REPL.
#############################
# BEGIN SENSITIVE ALIASES #
#############################
## Google App Engine Aliases
alias gcloud-clear-project='gcloud config set project some-junk-here-123123'
##############################
# END SENSITIVE ALIASES #
##############################
## GPG Aliases
alias gpg-encrypt='gpg --encrypt --armor'
alias gpg-decrypt='gpg --decrypt'
alias gpg-keys='gpg --list-key'
alias gpg-fingerprints='gpg -K --keyid-format long --with-colons --with-fingerprint'
alias imgur-ss='~/.shell_repos/imgur-screenshot/imgur-screenshot.sh'
# some more ls aliases
alias ls='ls -hF --color' # add colors for filetype recognition
alias lx='ls -lXB' # sort by extension
alias lk='ls -lSr' # sort by size
alias la='ls -Alh' # show hidden files
alias lr='ls -lR' # recursive ls
alias lt='ls -ltr' # sort by date
alias lm='ls -al |more' # pipe through 'more'
alias tree='tree -Cs' # nice alternative to 'ls'
alias ll='ls -l' # long listing
alias l='ls -hF --color' # quick listing
alias lsize='ls --sort=size -lhr' # list by size
alias lsd='ls -l | grep "^d"' #list only directories
## Some Drupal aliases
alias drush='sudo drush -r /var/www ' # I WILL NOT TYPE THIS PATH BULLSHIT EVERY TIME!!! ALSO GOTTA SUDO
## Moving around & all that jazz
alias back='cd $OLDPWD' # go back
alias ..="cd .." # go up
alias ...="cd ../.." # go up twice
alias ....="cd ../../.." # go up thrice
alias .....="cd ../../../.." # four times
alias ......="cd ../../../../.." # five times
## Dir shortcuts
alias home='cd ~/' # go to home directory
alias documents='cd ~/Documents' # go to documents dir
alias downloads='cd ~/Downloads' # go to downloads dir
alias localhost='cd /var/www' # go to localhost
## Shorten and organize
alias reload='source ~/.bashrc' # reload the bash shell with new source
## Sudo fixes
alias install='sudo apt-get install' # remove sudo
alias remove='sudo apt-get remove' # remove sudo
alias apt-update='sudo apt-get update' #remove sudo
## Dev related
alias restart-apache='sudo /etc/init.d/apache2 restart' # restart apache
alias restart-nginx='sudo service nginx restart' # restart nginx
# search for a package
alias search="apt-cache search"
#Command substiution
alias ff='sudo find / -name' # Find a file easily
# Help
alias aliases='cat ~/.aliases.help | less'
alias bash-help='cat ~/.bash.help | less'
# Fix terminal commands
alias xclip='xclip -selection C'
alias bc='bc -l'
# Misc. Editor goodness
alias v='vim'