-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
87 lines (72 loc) · 2.37 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
###################
#### FastFetch ####
###################
# Run fastfetch on startup
# clear; sleep 0.05; fastfetch
#################
#### Sources ####
#################
# Source fzf extra fucntions
[[ -e "$HOME/.config/fzf/fzf-extras.zsh" ]] && source $HOME/.config/fzf/fzf-extras.zsh
[[ -e "$HOME/.config/fzf/fzf-extras.bash" ]] && source $HOME/.config/fzf/fzf-extras.bash
# Source fzf key bindings
[[ -e "$HOME/.config/fzf/key-bindings.zsh" ]] && source $HOME/.config/fzf/key-bindings.zsh
# Source Luke Smith's zshrc
[[ -e "$HOME/.config/zsh/lukesmith.zsh" ]] && source $HOME/.config/zsh/lukesmith.zsh
#################
#### Exports ####
#################
# export TERMINAL='foot'
# export EDITOR='nvim'
# export VISUAL='nvim'
# export QT_QPA_PLATFORM=wayland
###################
#### Functions ####
###################
# Function to search and install packages using pacman
pacf() {
pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S
}
# Function to search and install packages using paru
paruf() {
paru -Slq | fzf --multi --preview 'paru -Si {1}' | xargs -ro paru -S
}
# Function to search and remove packages using pacman
pacrm() {
pacman -Qq | fzf --multi --preview 'pacman -Qi {1}' | xargs -ro sudo pacman -Rns
}
# Function to search and remove packages using paru
parurm() {
paru -Qq | fzf --multi --preview 'paru -Qi {1}' | xargs -ro paru -Rns
}
#################
#### Aliases ####
#################
alias ls="ls --color=auto"
alias warp="warp-cli"
alias mediastow="stow . -t ~/dotfiles/scripts/medialinks"
alias hypr="cd ~/.config/hypr"
alias insta="instaloader --no-captions --no-metadata-json --no-compress-json --no-profile-pic"
alias tmux="tmux -u"
alias ttach="tmux attach-session -t"
alias tkill="tmux kill-session -t"
#################
#### Plugins ####
#################
# Load zsh plugin manager zinit
source ~/.local/share/zinit/zinit.git/zinit.zsh
# List zinit plugins
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light zdharma-continuum/zinit-annex-as-monitor
zinit light zdharma-continuum/zinit-annex-bin-gem-node
zinit light zdharma-continuum/zinit-annex-patch-dl
zinit light zdharma-continuum/zinit-annex-rust
# pnpm
export PNPM_HOME="/home/docar/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end