-
Notifications
You must be signed in to change notification settings - Fork 3
/
.zshrc
79 lines (66 loc) · 1.86 KB
/
.zshrc
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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt appendhistory
setopt HIST_IGNORE_DUPS
unsetopt beep notify
# vi mode
bindkey -v
bindkey '^R' history-incremental-search-backward
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/erikb85/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# command-not-found activation
if [[ -s '/etc/zsh_command_not_found' ]]; then
source /etc/zsh_command_not_found
fi
# prompt
autoload -U promptinit
promptinit
autoload -U colors && colors
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%M:%{$fg[green]%}%*%{$reset_color%}:%{$fg[cyan]%}%~%{$reset_color%}$ "
# keys
source ~/.default_key
#virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /etc/bash_completion.d/virtualenvwrapper
##############
#
# from .bashrc
#
##############
export LANG=en_US.UTF-8 #this way screen will also start wtih utf8
export EDITOR=vim
source ~/.bash_aliases
# shortcut for github repository cloning (GitHub Clone)
# credit goes to chepner for this optimization:
# http://stackoverflow.com/a/15361490/131120
#
# :param repo: a string containing the end of the github url
ghc () { git clone git@github.com:"${@?need to set param: <dev>/<proj>}"; }
# a HidaV shortcut to the dev shell
#
# :param recipe: the name of the recipe that should be edited
devshell() {
if [ -z "$1" ]; then
echo "need to set param: <recipe-name>"
else
cd ~/coding/HidaV
. ./hidav-init.sh .
bitbake -c devshell $1
fi
}
# a HidaV shortcut to building sd cards for HidaV devices
#
# :param usb: the path to the sd card, optional
sdcard() {
[-z $1] && 1=/dev/sdc
cd ~/coding/Hidav
. ./hidav-init.sh .
cd ./tmp-eglibc/deploy/images/hidav-ti81xx
./ti814x-bootable-sdcard.sh $1
}