forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
46 lines (36 loc) · 952 Bytes
/
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
###############
# Completions #
###############
# Completions
autoload -U compinit
compinit -C
# Arrow key menu for completions
zstyle ':completion:*' menu select
# Case-insensitive (all),partial-word and then substring completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
###########
# Aliases #
###########
# Set up aliases
alias ll='ls -l'
# Autocomplete command line switches for aliases
setopt completealiases
###########
# History #
###########
# number of lines kept in history
HISTSIZE=1000
# number of lines saved in the history after logout
SAVEHIST=1000
# location of history
HISTFILE=~/.zsh_history
# append command to history file once executed
setopt inc_append_history
# only show past commands that include the current input
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
########
# Misc #
########
# Set prompt
PROMPT='%m%# '