-
Notifications
You must be signed in to change notification settings - Fork 3
/
paths.sh
35 lines (32 loc) · 841 Bytes
/
paths.sh
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
# Aliases going to paths
alias -g proj='cd ~/Documents/projects/'
alias -g 'proj#'='cd ~/Documents/projects/C\#'
alias -g proj++='cd ~/Documents/projects/C++'
alias -g projc='cd ~/Documents/projects/C'
alias -g projj='cd ~/Documents/projects/java'
alias -g projm='proj && cd mixed'
alias -g projml='cd ~/Documents/projects/ocaml'
alias -g projp='cd ~/Documents/projects/php'
alias -g projs='~/Documents/projects/js'
alias -g projm='~/Documents/projects/mixed/'
alias -g projrb='cd ~/Documents/projects/ruby'
#function j()
#{
# [ -z $1 ] && { echo 'usage: j <dest>'; return 1 }
# dest=$1
#
# proj_dir=$HOME/Documents/projects/*/*
#
# echo $proj_dir
#
# for proj in '$proj_dir'
# do
# if [ `dirname $proj` -eq $dest ]
# then
# cd $proj
# fi
# done
#
# return 2
#}
# /* vim ft=bash */