-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
83 lines (59 loc) · 2.15 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
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH
# https://github.com/facebook/create-react-app/issues/7251
# export PATH=$PATH:/mnt/c/Windows/System32
#Path to your oh-my-zsh installation.
export ZSH="/home/ali/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# custom completions
fpath+=~/.zfunc
plugins=(git node zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# make sure the lang is utf8
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vi'
else
export EDITOR='vim'
fi
# get rid of user@host in prompt
DEFAULT_USER=$USER
# mimic MacOS
alias open='xdg-open &>/dev/null'
# fnm
# export PATH=/home/ali/.fnm:$PATH
# eval "$(fnm env)"
[ -f "/home/ali/.ghcup/env" ] && source "/home/ali/.ghcup/env" # ghcup-env
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:/usr/local/go/bin
export PATH=~/.npm-global/bin:$PATH
alias emacs="emacs -nw"
export REACT_APP_EDITOR=code
#if [ $TILIX_ID ] || [ $VTE_VERSION ]; then # for Tilix Terminal
# source /etc/profile.d/vte.sh
#fi
# this is for my secret env variables. do not keep those in this file
# since this is on Github
source ~/.env.local
alias python=python3
alias p="cd ~/projects"
alias lsblk="lsblk -o name,mountpoint,label,size,type,uuid"
alias ip="ip --color=auto"
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored
zstyle :compinstall filename '/home/ali/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
alias gogh='bash -c "$(wget -qO- https://git.io/vQgMr)"'
eval "$(starship init zsh)"
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
source <(decafcli --bash-completion-script `which decafcli`)