-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrcmac
142 lines (123 loc) · 5.18 KB
/
.zshrcmac
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
#fi
# I'm using starship so I commented these lines
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
#**************************************************
#************************ ***************
#************************ ZSH THEME ***************
#************************ ***************
#**************************************************
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=60'
#I commented zsh theme, because I use powerline
#ZSH_THEME="agnoster"
zstyle ':omz:update' mode auto # update automatically without asking
# Uncomment the following line to change how often to auto-update (in days).
zstyle ':omz:update' frequency 13
#******************************************************
#************************ ***************
#************************ OMZ PLUGINS ***************
#************************ ***************
#******************************************************
plugins=(git git-flow-completion zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
#preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='nvim'
else
export EDITOR='nvim'
fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
#**************************************************
#************************ ***************
#************************ EMACS ***************
#************************ ***************
#**************************************************
export PATH="$HOME/.emacs.d/bin:$PATH"
#**************************************************
#************************ ***************
#************************ FLUTTER ***************
#************************ ***************
#**************************************************
export PATH="$PATH:/home/edapess/flutter/flutter/bin"
export CHROME_EXECUTABLE=/usr/bin/chromium
#**************************************************
#************************ ***************
#************************ ANDROID ***************
#************************ ***************
#**************************************************
export PATH=$PATH:$HOME/Library/Android/sdk/build-tools/35.0.0
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
#**************************************************
#************************ ***************
#************************ XMONAD ***************
#************************ ***************
#**************************************************
export PATH=~/.ghcup/bin:$PATH
export PATH=~/myPacks/eww/target/release/eww:$PATH
#************************************************
#************************ ***************
#************************ ALIASES ***************
#************************ ***************
#************************************************
##some commands
alias ls="exa --icons"
alias lst="exa --tree --icons"
alias ide="bash ide.sh"
alias idev="bash idev.sh"
alias vi="nvim"
alias emacs="emacsclient -c -a 'emacs'"
alias update="sudo pacman -Syyu"
alias updall="yay -Syyu"
alias hw="hwinfo --short"
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias eww='~/myPacks/eww/target/release/eww'
alias gdclean='cd android && ./gradlew clean && cd ../'
alias top='btop'
alias gc='git checkout'
alias gcm='git commit -m'
alias gcb='git checkout -b'
alias gs='git status'
alias gd='git diff'
alias gl='git log'
alias gss='git stash push -m'
alias gsp='git stash pop'
alias gsl='git stash list'
alias gpush='git push'
alias gcommit='git commit -m'
alias listIosDevices='xcrun xctrace list devices'
alias listAndroidDevices='adb devices'
alias restartPortfolium='docker compose down && docker compose build --no-cache && docker compose --env-file ~/Development/Portfolium/dev/portfolium-be/.env up -d'
#SHELL SCRIPTS
#path to z
. /opt/homebrew/Cellar/z/1.12/etc/profile.d/z.sh
#----source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
export PATH=/opt/homebrew/bin:$PATH
export PATH="/opt/homebrew/opt/binutils/bin:$PATH"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
#----[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# -----source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
eval "$(starship init zsh)"
#alsi
#paleofetch
#pfetch
#neofetch
#ufetch-arco
#colorscript random
#cpufetch
#screenfetch
#fastfetch
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"