zshrc
This commit is contained in:
parent
95cf5437ff
commit
e25a9dba9d
1 changed files with 70 additions and 4 deletions
74
.zshrc
74
.zshrc
|
@ -11,17 +11,83 @@ zmodload zsh/complist
|
|||
compinit
|
||||
comp_options+=(globdots)
|
||||
#ohmyzsh
|
||||
ZSH_THEME="gentoo" && export ZSH=$HOME/.config/.oh-my-zsh && source $ZSH/oh-my-zsh.sh
|
||||
#ZSH_THEME="gentoo" && export ZSH=$HOME/.config/.oh-my-zsh && source $ZSH/oh-my-zsh.sh
|
||||
#source
|
||||
source "$HOME/.config/shell/aliases" && source "$HOME/.config/shell/exports" && source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh && fpath=(/usr/share/zsh/site-functions $fpath) && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh && fpath=(/usr/share/zsh/site-functions $fpath) && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
#farver
|
||||
autoload -U colors && colors && setopt prompt_subst
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5"
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
|
||||
#prompt
|
||||
[ "$(id -u)" = 0 ] && PS1ICON="#" || PS1ICON='$'
|
||||
[ "$(id -u)" = 0 ] && PS1ICON="#" || PS1ICON='%'
|
||||
|
||||
PROMPT='%{$(echo -e "\e[38;2;114;47;55m")%}[%{$(echo -e "\e[38;2;197;198;200m")%}%n%{$(echo -e "\e[38;2;114;47;55m")%}@core %{$(echo -e "\e[38;2;197;198;200m")%}%~%{$(echo -e "\e[38;2;114;47;55m")%}]%$PS1ICON$%{$(echo -e "\e[0m")%} '
|
||||
PROMPT='%{$(echo -e "\e[38;2;114;47;55m")%}[%{$(echo -e "\e[38;2;197;198;200m")%}%n%{$(echo -e "\e[38;2;114;47;55m")%}@core %{$(echo -e "\e[38;2;197;198;200m")%}%~%{$(echo -e "\e[38;2;114;47;55m")%}]%$PS1ICON%{$(echo -e "\e[0m")%} '
|
||||
|
||||
#coast's zshrc :3
|
||||
##!/bin/sh
|
||||
#general aliases
|
||||
alias xi="doas xbps-install -S $1"
|
||||
alias nf="clear && fastfetch"
|
||||
alias ascdis="fastfetch --logo $1"
|
||||
alias forge="su forgejo"
|
||||
alias emoji="cat ~/.local/share/emoji | grep $1"
|
||||
alias cst="swallow emacsd ~/.config/st/config.h"
|
||||
alias lasal="eza -al"
|
||||
alias ls="eza"
|
||||
alias anal="eza -ahl"
|
||||
alias resmacs="systemctl --user restart emacsd"
|
||||
alias smi="nvidia-smi"
|
||||
alias src="source ~/.zshrc"
|
||||
alias bat="sb-battery"
|
||||
alias battery="sb-battery"
|
||||
alias vimrc="vim .vimrc"
|
||||
alias ri="ranger"
|
||||
alias rim="ranger"
|
||||
alias quit="exit"
|
||||
alias :q="exit"
|
||||
alias :q!="exit"
|
||||
alias :Q="exit"
|
||||
alias :Q!="exit"
|
||||
alias :quit="exit"
|
||||
alias :quit!="exit"
|
||||
alias :QUIT="exit"
|
||||
alias :QUIT!="exit"
|
||||
alias q="exit"
|
||||
alias fnl="fennel"
|
||||
alias "push"="git push -u origin main"
|
||||
alias irc="irssi"
|
||||
alias hsw="home-manager switch --flake ~/.config/home-manager"
|
||||
alias hsc="swallow emacsd ~/.config/home-manager/home.nix"
|
||||
alias yell="echo"
|
||||
alias chm="ecop cat ~/.config/home-manager/home.nix"
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
alias ed="ed -p '%: '"
|
||||
else
|
||||
alias ed="ed -p '$: '"
|
||||
fi
|
||||
alias weather="curl wttr.in/masjedsoleyman"
|
||||
alias emacs="swallow emacsd $1"
|
||||
alias emacsd="swallow emacsd $1"
|
||||
#typo/shortcut
|
||||
alias las="eza"
|
||||
alias lasa="eza -a"
|
||||
alias c="clear"
|
||||
alias cear="clear"
|
||||
alias "cd.."="cd .."
|
||||
alias claer="clear"
|
||||
alias claer="clear"
|
||||
alias clare="clear"
|
||||
alias cleae="clear"
|
||||
alias clera="clear"
|
||||
alias hotp="htop"
|
||||
fpath=(~/.zsh/completions $fpath)
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=$HOME/.luarocks/bin:$PATH
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
export ZSH="/home/avery/.oh-my-zsh"
|
||||
fi
|
||||
export NIXPKGS_ALLOW_UNFREE=1
|
||||
export EDITOR="emacs"
|
||||
|
||||
export PATH=/usr/pkg/sbin:/usr/pkg/bin:$PATH
|
||||
export MANPATH=/usr/pkg/man:$MANPATH
|
||||
|
|
Loading…
Add table
Reference in a new issue