forked from chrishoage/zsh-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzimrc
71 lines (63 loc) · 2.24 KB
/
zimrc
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
# What OS are we in?
isOSX=false
isLinux=false
isLinux32=false
isLinux64=false
isDocker=false
isRaspberry=false
case "$OSTYPE" in
darwin*) #echo "It's a Mac!!" ;
isOSX=true ;;
linux*) isLinux=true ;
#echo "It's a Linux!!" ;
# test for 32bit architecture
if [ -n "$(uname -a | grep 'i686')" ]; then isLinux32=true; fi ;
# test for 64bit architecture
if [ -n "$(uname -a | grep '86_64')" ]; then isLinux64=true; fi ;
# test for arm raspberry pi architecture
if [ -n "$(uname -a | grep 'armv7')" ]; then isRaspberry=true; fi ;
# test for container
if [ -n "$(cat /proc/1/cgroup | grep 'docker')" ]; then isDocker=true; fi ;;
*) echo "System not recognized"; exit 1 ;;
esac
# Start configuration added by Zim install {{{
# -------
# Modules
# -------
# Sets sane Zsh built-in environment options.
zmodule environment
# Provides handy git aliases and functions.
zmodule git
# Applies correct bindkeys for input events.
zmodule input
# Sets a custom terminal title.
zmodule termtitle
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
#
# Prompt
#
# Exposes git repository status information to prompts.
zmodule git-info
# A customizable version of steeef's prompt theme.
zmodule steeef
# Additional completion definitions for Zsh.
zmodule zsh-users/zsh-completions
# Enables and configures smart and extensive tab completion.
# completion must be sourced after zsh-users/zsh-completions
zmodule completion
# Fish-like autosuggestions for Zsh.
zmodule zsh-users/zsh-autosuggestions
# Fish-like syntax highlighting for Zsh.
# zsh-users/zsh-syntax-highlighting must be sourced after completion
zmodule zsh-users/zsh-syntax-highlighting
# Fish-like history search (up arrow) for Zsh.
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-history-substring-search
# }}} End configuration added by Zim install
# osx specific
[[ $isOSX = true ]] && zmodule homebrew
# file system
zmodule danielporto/wd -s 'wd.plugin.zsh' -f '.'
# search engine from terminal
#zmodule ohmyzsh/ohmyzsh -f 'plugins/web-search' -s 'plugins/web-search/web-search.plugin.zsh'