-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
62 lines (50 loc) · 1.97 KB
/
Copy path.zshrc
File metadata and controls
62 lines (50 loc) · 1.97 KB
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
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Oh My Zsh not found. Installing..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
echo "Oh My Zsh installation complete."
fi
export ZSH="$HOME/.oh-my-zsh"
export PATH="$PATH:/home/mohammed/.dotnet/tools"
ZSH_THEME="robbyrussell"
plugins=(git npm node docker zoxide bun uv dotnet command-not-found golang)
source $ZSH/oh-my-zsh.sh
alias zshconfig="source ~/.zshrc"
alias v="nvim"
alias lg="lazygit"
alias ld="lazydocker"
alias lcfzf="lazycommit commit | fzf --prompt='Pick commit> ' | xargs -r -I {} git commit -m \"{}\" "
alias oh="sh ~/dotfiles/.config/Scripts/toggle-omo.sh"
alias venv=source venv/bin/activate
export PATH="/home/mohammed/.config/herd-lite/bin:$PATH"
export PHP_INI_SCAN_DIR="/home/mohammed/.config/herd-lite/bin:$PHP_INI_SCAN_DIR"
alias open="xdg-open"
alias l="eza -l --icons --git -a"
alias lt="eza --tree --level=2 --long --icons --git"
alias ltree="eza --tree --level=2 --icons --git"
alias oc=opencode
export EDITOR="nvim"
if [ -f ~/.zshenv ]; then
source ~/.zshenv
fi
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export NVM_DIR="$HOME/.config/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
[[ "$TERM_PROGRAM" == "kiro" ]] && . "$(kiro --locate-shell-integration-path zsh)"
# bun completions
[ -s "/home/mohammed/.bun/_bun" ] && source "/home/mohammed/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# opencode
export PATH=/home/mohammed/.opencode/bin:$PATH
export PATH="$PATH:$HOME/.cargo/bin"
if [ -d "$HOME/.linuxbrew" ] || [ -d "/home/linuxbrew/.linuxbrew" ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
fi
eval "$(direnv hook bash)"
export PATH="$HOME/.local/bin:$PATH"