-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmuxifier-alias.zsh
68 lines (59 loc) · 2.15 KB
/
.tmuxifier-alias.zsh
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
# export QT_QPA_PLATFORMTHEME=qt5ct
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export GOPATH=$HOME/go/
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$HOME/.config/tmux/plugins/tmuxifier/bin
export PATH=$PATH:$HOME/.local/bin/
alias sudoedit='sudo -e'
eval "$(tmuxifier init -)"
export EDITOR=nvim
# alias vim=nvim
alias w=nvim
alias dotfiles="cd ~/git-pkg/dotfiles/"
# alias clr=clear
alias c=clear
alias lg=lazygit
alias kittyconf="nvim ~/.config/kitty/kitty.conf"
alias hyprconf="nvim ~/.config/hypr/hyprland.conf"
alias quteconf="nvim ~/.config/qutebrowser/config.py"
alias tmx="tmuxifier"
alias tmxls="tmuxifier list-sessions"
alias tmxn="tmuxifier new-session"
alias tmxl="tmuxifier load-session"
alias tmxe="tmuxifier edit-session"
alias tkss="tmux kill-session -t"
alias please='sudo $(fc -ln -1)'
alias r='$(fc -ln -1)'
alias wscreenkey="GDK_BACKEND=x11 screenkey"
alias e="exit"
alias f="fzf"
alias lg="lazygit"
alias tt="vit"
alias ls="eza --color=always --icons=always --no-user"
alias l="eza --color=always --icons=always --no-user"
alias ll="eza --color=always --icons=always --no-user -a"
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git "
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type=d --hidden --strip-cwd-prefix --exclude .git"
# --bind 'ctrl+n:execute(echo {+} | xargs -o nvim)'
export FZF_DEFAULT_OPTS="--height 50% --layout=default --border --color=hl:#2dd4bf
"
# Setup fzf previews
export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'"
export FZF_ALT_C_OPTS="--preview 'eza --icons=always --tree --color=always {} | head -200'"
# fzf preview for tmux
export FZF_TMUX_OPTS=" -p90%,70% "
# yazi-config
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
# INFO: These are the plugins to use in zsh
# plugins=(git zsh-syntax-highlighting zsh-autosuggestions npm zsh-autocomplete tmux)