65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
|
PS1="$USER@$HOST:~$ "
|
||
|
|
||
|
bindkey -v
|
||
|
|
||
|
export TERM="xterm-256color"
|
||
|
export EDITOR="vim"
|
||
|
HISTFILE=~/.zsh_history
|
||
|
HISTSIZE=10000
|
||
|
SAVEHIST=10000
|
||
|
setopt appendhistory
|
||
|
|
||
|
autoload -U compinit
|
||
|
zstyle ':completion:*' menu select
|
||
|
zstyle ':completion:*' rehash true
|
||
|
zmodload zsh/complist
|
||
|
compinit
|
||
|
|
||
|
. ~/.aliases
|
||
|
|
||
|
#preexec() { print -Pn "\e]0;$1\a" }
|
||
|
_ms() { a=$PWD;cd ~/music;b=$(fzf);echo "Playing: $PWD/$b";mpv "$b"; cd $a }
|
||
|
_es() { cd ~/.scripts; vim $(fzf) }
|
||
|
_e() { vim $(fzf) }
|
||
|
_h() { cat ~/.zsh_history | fzf | xclip -sel c }
|
||
|
|
||
|
|
||
|
alias vi="vim"
|
||
|
alias htop="htop -C"
|
||
|
alias f="sshfs fileServer:files/ ~/fileServer"
|
||
|
alias fu="fusermount3 -u ~/fileServer"
|
||
|
#alias r="sudo rmmod rmi_smbus && sudo modprobe rmi_smbus; sudo sv restart NetworkManager"
|
||
|
alias m="mpv ~/music/*"
|
||
|
alias mr="mpv ~/music/* --shuffle"
|
||
|
alias ms="_ms"
|
||
|
alias a="startx"
|
||
|
alias fm="lfimg"
|
||
|
alias proton="STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.local/share/Steam/ STEAM_COMPAT_DATA_PATH=~/.local/share/Steam/steamapps/compatdata ~/.local/share/Steam/compatibilitytools.d/GE-Proton9-11/proton run"
|
||
|
alias sxiv="sxiv -a"
|
||
|
alias irc="weechat"
|
||
|
alias in="doas pacman -S"
|
||
|
alias sy="doas pacman -Sy"
|
||
|
alias up="doas pacman -Syu"
|
||
|
alias se="pacman -Ss"
|
||
|
alias p="doas poweroff"
|
||
|
alias r="doas reboot"
|
||
|
alias h="cat ~/.zsh_history | fzf"
|
||
|
alias b="vi ~/.bookmarks/bookmarks"
|
||
|
alias gc="git commit -m"
|
||
|
alias gp="git push"
|
||
|
alias ga="git add ."
|
||
|
alias gs="git status"
|
||
|
alias gsc="git config --global credential.helper store"
|
||
|
alias gl="git pull"
|
||
|
alias yt="ytfzf"
|
||
|
alias es="_es"
|
||
|
alias e="_e"
|
||
|
alias srv="python3 -m http.server 3000 &> /dev/null &; echo web server has started"
|
||
|
alias re="source ~/.zshrc"
|
||
|
alias ks="killall steam"
|
||
|
alias wunsz="nsnake"
|
||
|
alias iftop="doas iftop"
|
||
|
alias tor="doas tor"
|
||
|
alias cal="cal -Y"
|
||
|
alias h="_h"
|