forked from RichiH/zshrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc.local
82 lines (69 loc) · 2.04 KB
/
.zshrc.local
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
if [ -r ~/.zshrc -a -r ~/.zshrc.global -a ! -r ~/.zshrc.local ] ; then
printf '-!-\n'
printf '-!- Looks like you are using the old zshrc layout of grml.\n'
printf '-!- Please read the notes in the grml-zsh-refcard, being'
printf '-!- available at: http://grml.org/zsh/\n'
printf '-!-\n'
printf '-!- If you just want to get rid of this warning message execute:\n'
printf '-!- touch ~/.zshrc.local\n'
printf '-!-\n'
fi
## global aliases (for those who like them) ##
#alias -g '...'='../..'
#alias -g '....'='../../..'
#alias -g BG='& exit'
#alias -g C='|wc -l'
#alias -g G='|grep'
#alias -g H='|head'
#alias -g Hl=' --help |& less -r'
#alias -g K='|keep'
alias -g L='|less'
alias -g LL='|& less -r'
#alias -g M='|most'
#alias -g N='&>/dev/null'
#alias -g R='| tr A-z N-za-m'
#alias -g SL='| sort | less'
#alias -g S='| sort'
#alias -g T='|tail'
alias -g V='| vim -'
alias -g g='git'
# Personal settings for CH
export PATH=$PATH:$HOME/bin:$HOME/.local/bin
export MAIL=$HOME/Mail/inbox/`date +"%y%m"`
hash -d dev=$HOME/devel
hash -d dok=$HOME/Dokumente
alias -g yi="sudo dnf install -y"
alias -g yu="sudo dnf update"
alias -g ys="dnf search"
## Aliases
alias ls="ls --color=auto"
alias targx="tar -zxvf"
alias targc="tar -cxvf"
alias tarbx="tar --bzip2 -xvf"
alias tarbc="tar --bzip2 -cvf"
alias l="ls --color=auto -altrh"
alias sshnoch="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
alias g="git"
# }}}
if [ -e $HOME/.dir_colors ];
then
[ -x /usr/bin/dircolors ] && eval `dircolors $HOME/.dir_colors`
fi
if [ -n "$TMUX" ]; then
function refresh {
eval $(tmux show-environment -s)
}
else
function refresh { }
fi
function preexec {
refresh
}
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
# Include workplace zshrc for settings different then
[ -f $HOME/.zshrc.local.workplace ] && source "$HOME/.zshrc.local.workplace"
# Start keychain
[ -x /usr/bin/keychain ] && eval `keychain --agents ssh --eval id_rsa`
# Minicom
export MINICOM="-m -c on"