-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.zshrc
executable file
·70 lines (53 loc) · 2.19 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
(cat ~/.cache/wal/sequences &)
# (nohup $HOME/.config/hypr/theme/scripts/wal-theme.sh > /dev/null 2>&1 &) # set wallpaper theme
eval "$(starship init zsh)"
# fetch system information
source $HOME/.config/fastfetch/fastfetch.sh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # Autosuggestions for commands
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Syntax Highlighting and colors
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh # Substring history search using up and down arrow keys
source /usr/share/zsh/plugins/zsh-sudo/sudo.plugin.zsh
source /usr/share/zsh/plugins/zsh-auto-notify/auto-notify.plugin.zsh
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
#Zsh Auto-Suggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#696969,bold"
HISTSIZE=10000 # Maximum events for internal history
SAVEHIST=10000 # Maximum events in history file
HISTDIR=~/.cache/zsh # History directory
HISTFILE=$HISTDIR/history # History filepath
mkdir -p "$HISTDIR" # Create history directory if it doesn't exist
touch "$HISTDIR/history" # Create history file if it doesn't exist
# Zsh Tab Complete
autoload -U compinit
compinit
#Zsh Substring History Search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
############################################################
# Aliases for ls
alias ls='lsd'
# Aliases for cat
alias cat='bat'
# Aliases for fastfetch
alias f='clear && source $HOME/.config/fastfetch/fastfetch.sh'
# Aliase functions
function code() {
/bin/code $1 && exit
}
function v() {
/bin/neovide --fork $1 && exit
}
alias cpdir='pwd | tr -d "\r\n" | wl-copy'
# Test Connection
TEST_CONNECTION="/home/ayman/.config/hypr/scripts/test-connection.sh"
alias conn=$TEST_CONNECTION
# Aliases for neofetch
alias n=$NEOFETCH
# Aliases for logout
alias logout='hyprctl dispatch exit'
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)
# Configuration Update
alias update='$HOME/.config/hypr/maintenance/UPDATE.sh'
# Waifu Chat Bot and Assistant
alias waifu='source $HOME/linux-chat-bot/main.sh "$(pwd)"'