blob: 134ee5abb27176fbb18921fd485e6bb128ae7ec3 (
plain)
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
|
{ grml-zsh-config }: ''
source ${grml-zsh-config}/etc/zsh/zshrc
#export PATH="$PATH:$HOME/.local/bin:$HOME/System/local/bin:$HOME/System/bin:$HOME/.cargo/bin"
alias reset='tput reset'
alias reload='exec zsh'
alias py=python
alias py2=python2
alias py3=python3
function spawn() {
if [ ! -x "$(command -v $1)" ]; then
echo "spawn: no such shit: $1" >&2
return 1
fi
$@ >/dev/null 0>&1 2>&1 &
disown
}
function galias() {
source $HOME/System/dot/git-aliases.zsh
}
function xseli() {
T=$(mktemp)
$EDITOR -n $T
xsel -b <$T
rm $T
}
autoload -Uz up-line-or-beginning-search
zle -N up-line-or-beginning-search
autoload -Uz down-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey '\eOA' up-line-or-beginning-search
bindkey '\e[A' up-line-or-beginning-search
bindkey '\eOB' down-line-or-beginning-search
bindkey '\e[B' down-line-or-beginning-search
zstyle ':prompt:grml:left:setup' items $([ ''${NO_USERATHOST:-0} -gt 0 ] || echo user at host) path percent
zstyle ':prompt:grml:right:setup' items sad-smiley vcs $([ ''${NO_BATTERY:-0} -gt 0 ] || echo battery) time
zstyle ':prompt:grml:right:items:time' pre ' %F{yellow}'
unsetopt sharehistory
setopt appendhistory
setopt extendedhistory
''
|