-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
53 lines (44 loc) · 1.21 KB
/
zshrc
File metadata and controls
53 lines (44 loc) · 1.21 KB
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
# Installation:
# git clone https://github.com/zdharma/zinit.git ~/.zinit
source ~/.zinit/zi.zsh
# prompt expressions
setopt promptsubst
# don't write over existing files with >, use >! instead
setopt NOCLOBBER
# watch other user login/out
watch=notme
# load colors
autoload colors; colors
autoload compinit; compinit
zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit snippet OMZ::lib/completion.zsh
zinit snippet OMZ::lib/history.zsh
zinit snippet OMZ::lib/async_prompt.zsh
zinit snippet OMZ::lib/git.zsh
zinit snippet OMZ::plugins/git/git.plugin.zsh
zinit snippet OMZ::themes/gallifrey.zsh-theme
# Do not show any return code
unset RPS1
# Include home dot-bin to $PATH
export PATH="$HOME/.bin:$PATH"
export EDITOR='vim'
export VISUAL='vim'
export EMAIL='Stas Sușcov <stas@nerd.ro>'
## Aliases
alias _='sudo'
alias sapt='sudo apt-get'
alias sap='sudo apt-get --purge autoremove'
alias l='ls -lah'
alias 'rm=rm -i'
alias 'mv=mv -i'
alias 'cp=cp -i'
alias 'mkdir=mkdir -p'
alias 'v=vim'
alias 'j=jobs -l'
alias 'rh=rehash'
alias 'h=history'
## Tools
alias http='python3 -m http.server ${1}'
alias jsonify='python3 -m json.tool'
alias container='docker run -v "$(pwd):/app" -w /app -it'