-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.zshrc
72 lines (59 loc) · 1.68 KB
/
linux.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
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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/aukkonen/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
zstyle ':completion:*' menu yes select
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
eval "$(oh-my-posh init zsh --config ~/peru-shell.omp.json)"
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if whence -w ll | grep "alias"; then
unalias ll
fi
if whence -w la | grep "alias"; then
unalias la
fi
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
function ll
{
if [ $# -lt 1 ]
then
eza -lh -B --icons --no-user --group-directories-first --time-style long-iso
return
fi
eza $1 -lh -B --icons --no-user --group-directories-first --time-style long-iso
}
function la
{
if [ $# -lt 1 ]
then
eza -lha -B --icons --no-user --group-directories-first --time-style long-iso
return
fi
eza $1 -lha -B --icons --no-user --group-directories-first --time-style long-iso
}
function mdmore
{
markdown $1 | lynx -stdin
}
alias dir='eza --icons --group-directories-first'
alias cls="printf '\033[2J\033[3J\033[H'"
alias cursorblink="printf '\x1b[1 q'"
alias nano="$(brew --prefix)/bin/nano"