-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
104 lines (85 loc) · 2.46 KB
/
.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' '' '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle :compinstall filename '/home/yashas/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd nomatch
unsetopt beep extendedglob
bindkey -e
# End of lines configured by zsh-newuser-install
#Custom Settings
#Alias
alias ls='ls --color'
alias chrome='google-chrome-stable'
#alias code='code-oss'
#Safety First
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
#dotfiles repo in github
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
#Perform ls after cd
chpwd(){
ls
}
# PROMPT
# PROMPT='%F{blue}%B%m%f %F{166}%~> %b%f'
# RPROMPT='[%F{yellow}%?%f]'
setprompt() {
setopt prompt_subst
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then
p_host='%F{yellow}%M%f'
else
p_host='%F{green}%M%f'
fi
PS1=${(j::Q)${(Z:Cn:):-$'
%F{203}[%f
%(!.%F{red}%n%f.%F{green}%n%f)
%F{203}@%f
%F{245}%M%f
%F{203}][%f
%F{221}%~%f
%F{203}]%f
%(!.%F{red}%#%f.%F{green}%#%f)
" "
'}}
PS2=$'%_>'
RPROMPT='[%F{203}%t%f]'
}
setprompt
#${p_host}
# -- coloured manuals
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
# Nvm Node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Android Studio
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
#Flutter
export PATH=~/Development/flutter/bin:$PATH