blob: 24760627cb61c10f9de87234caff704ca5c988c6 (
plain) (
blame)
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
|
export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH
echo "Welcome back, $USER"
# use vi bindings for terminal input
set -o vi
# BEGIN: aliases
alias ll="ls -l"
alias catn="cat -n"
alias egrep="egrep --color"
alias grep="egrep"
alias c="clear"
alias vi="vim"
alias find="find -E"
# if pygmentize isn't installed run...
# sudo pip install pygments
# colorizes syntax of files
alias ccat="pygmentize -g"
alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
# END: aliases
# BEGIN: functions
functon npms() {
clear;
npm start;
}
# END: functions
# BEGIN: bindkeys
bindkey "^R" history-incremental-search-backward
bindkey -M viins 'jj' vi-cmd-mode
# END: bindkeys
# export docker env variables
# re-enable this line when using docker otherwise you will receive
# a TLS error since docker-machine won't be running
# eval "$(docker-machine env default)"
# custom js functions
source ~/.js_to_bash.sh
# custom git functions
source ~/.git_functions.sh
# generates placeholder content for FE work
function lorem {
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
echo $text
}
# generates lorem and adds to pasteboard
function loremcp {
lorem | pbcopy
}
# run cmatrix command for 3 seconds before exiting
#. $HOME/.matrix_intro.sh
# syntax highlighting for CLI; if not installed, run the following command
# brew install zsh-syntax-highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|