speedie-zsh | Add new config
This commit is contained in:
parent
d57cc6a9b2
commit
5f6c8c24c8
File diff suppressed because it is too large
Load diff
|
@ -51,13 +51,6 @@ alias makeconf='$PERM $EDITOR /etc/portage/make.conf'
|
||||||
alias vimrc='$EDITOR ~/.vimrc'
|
alias vimrc='$EDITOR ~/.vimrc'
|
||||||
alias nvimrc='$EDITOR ~/.config/nvim/config'
|
alias nvimrc='$EDITOR ~/.config/nvim/config'
|
||||||
|
|
||||||
# cd aliases
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias .2='cd ../..'
|
|
||||||
alias .3='cd ../../..'
|
|
||||||
alias .4='cd ../../../..'
|
|
||||||
alias .5='cd ../../../../..'
|
|
||||||
|
|
||||||
alias goconfig="cd ~/.config"
|
alias goconfig="cd ~/.config"
|
||||||
alias godl="cd ~/Downloads"
|
alias godl="cd ~/Downloads"
|
||||||
alias gostor="cd /mnt/storage01"
|
alias gostor="cd /mnt/storage01"
|
||||||
|
@ -72,3 +65,4 @@ alias untar='$PERM tar xpvf'
|
||||||
alias unrar='$PERM unrar x'
|
alias unrar='$PERM unrar x'
|
||||||
|
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
|
alias dms='$PERM make clean install'
|
||||||
|
|
|
@ -6,6 +6,7 @@ export SAVEHIST=$HISTSIZE
|
||||||
|
|
||||||
export USER=$(whoami)
|
export USER=$(whoami)
|
||||||
export CPATH=/home/$USER/.local/bin:/home/$USER/Projects/scripts:/home/$USER/.config:/home/$USER/Scripts
|
export CPATH=/home/$USER/.local/bin:/home/$USER/Projects/scripts:/home/$USER/.config:/home/$USER/Scripts
|
||||||
|
export SCRIPTDIR="/home/$USER/Scripts"
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
command -v sudo > /dev/null && export PERM='sudo'
|
command -v sudo > /dev/null && export PERM='sudo'
|
||||||
|
@ -20,7 +21,7 @@ command -v chromium > /dev/null && export BROWSER='chromium'
|
||||||
command -v firefox-bin > /dev/null && export BROWSER='firefox-bin'
|
command -v firefox-bin > /dev/null && export BROWSER='firefox-bin'
|
||||||
command -v firefox > /dev/null && export BROWSER='firefox'
|
command -v firefox > /dev/null && export BROWSER='firefox'
|
||||||
|
|
||||||
export FETCH='sfetch'
|
export FETCH='ufetch'
|
||||||
export PS1="$PS1col"
|
export PS1="$PS1col"
|
||||||
export MIXER='pulsemixer'
|
export MIXER='pulsemixer'
|
||||||
export TOOL='fzf'
|
export TOOL='fzf'
|
||||||
|
@ -28,7 +29,7 @@ export PROJECTDIR="$HOME/Projects"
|
||||||
export DOTDIR="$HOME/.config"
|
export DOTDIR="$HOME/.config"
|
||||||
export LIST='exa'
|
export LIST='exa'
|
||||||
|
|
||||||
export SERVERDATA="$HOME/.config/.serverdata"
|
export SERVERDATA="$HOME/.config/secrets/.serverdata"
|
||||||
|
|
||||||
command -v pacman > /dev/null && \
|
command -v pacman > /dev/null && \
|
||||||
export PKGINSTALL='$PERM pacman -S' && \
|
export PKGINSTALL='$PERM pacman -S' && \
|
||||||
|
|
|
@ -6,12 +6,58 @@ pro() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# cd into dotdir and list files and directories
|
# cd into dotdir and list files and directories
|
||||||
dot() {
|
cdot() {
|
||||||
[ -z "$DOTDIR" ] && DOTDIR="$HOME/.config"; [ -z "$TOOL" ] && TOOL=fzf
|
[ -z "$DOTDIR" ] && DOTDIR="$HOME/.config"; [ -z "$TOOL" ] && TOOL=fzf
|
||||||
|
command -v "$TOOL" > /dev/null || return
|
||||||
clear; cd "$DOTDIR/$($LIST -a $PROJECTDIR | $TOOL)"
|
clear; cd "$DOTDIR/$($LIST -a $PROJECTDIR | $TOOL)"
|
||||||
clear; $LIST -lah
|
clear; $LIST -lah
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# list dotfiles
|
||||||
|
edot() {
|
||||||
|
command -v fzf > /dev/null || return
|
||||||
|
DOT="$(printf "nvim config\nnvim init.vim\n.vimrc\n.Xresources\nspeedwmrc\nstatusrc\nspeedwm autostart.sh\nspeedwm options.h\nspeedwm speedwm.c\nspeedwm bar.h\nspeedwm keybinds.h\ndmenu options.h\nmuttrc\nnewsboat urls\nnewsboat config\nvifmrc\nalacritty.yml\n.zsh_alias\n.zsh_export\n.zsh_func\n.zsh_ps\n.zsh_starship\n.zshrc\nsfeedrc\n.mbsyncrc\n" \
|
||||||
|
| sort | fzf)"
|
||||||
|
|
||||||
|
case "$DOT" in
|
||||||
|
"nvim config") "$EDITOR" "$HOME/.config/nvim/config" ;;
|
||||||
|
"nvim init.vim") "$EDITOR" "$HOME/.config/nvim/init.vim" ;;
|
||||||
|
".vimrc") "$EDITOR" "$HOME/.vimrc" ;;
|
||||||
|
".Xresources") "$EDITOR" "$HOME/.config/.Xresources" ;;
|
||||||
|
"speedwmrc") "$EDITOR" "$HOME/.config/speedwm/speedwmrc" ;;
|
||||||
|
"statusrc") "$EDITOR" "$HOME/.config/speedwm/statusrc" ;;
|
||||||
|
"muttrc") "$EDITOR" "$HOME/.config/mutt/muttrc" ;;
|
||||||
|
"newsboat urls") "$EDITOR" "$HOME/.config/newsboat/urls" ;;
|
||||||
|
"newsboat config") "$EDITOR" "$HOME/.config/newsboat/config" ;;
|
||||||
|
"speedwm autostart.sh") "$EDITOR" "$HOME/.config/speedwm/autostart.sh" ;;
|
||||||
|
"speedwm options.h") "$EDITOR" "$HOME/Projects/speedwm/options.h" ;;
|
||||||
|
"speedwm speedwm.c") "$EDITOR" "$HOME/Projects/speedwm/speedwm.c" ;;
|
||||||
|
"speedwm bar.h") "$EDITOR" "$HOME/Projects/speedwm/bar.h" ;;
|
||||||
|
"speedwm keybinds.h") "$EDITOR" "$HOME/Projects/speedwm/keybinds.h" ;;
|
||||||
|
"dmenu options.h") "$EDITOR" "$HOME/Projects/dmenu/options.h" ;;
|
||||||
|
"vifmrc") "$EDITOR" "$HOME/.config/vifm/vifmrc" ;;
|
||||||
|
"alacritty.yml") "$EDITOR" "$HOME/.config/alacritty/alacritty.yml" ;;
|
||||||
|
".zsh_alias") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zsh_alias" ;;
|
||||||
|
".zsh_export") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zsh_export" ;;
|
||||||
|
".zsh_func") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zsh_func" ;;
|
||||||
|
".zsh_ps") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zsh_ps" ;;
|
||||||
|
".zsh_starship") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zsh_starship" ;;
|
||||||
|
".zshrc") "$EDITOR" "$HOME/.config/zsh/dotfiles/.zshrc" ;;
|
||||||
|
"sfeedrc") "$EDITOR" "$HOME/.sfeed/sfeedrc" ;;
|
||||||
|
".mbsyncrc") "$EDITOR" "$HOME/.mbsyncrc" ;;
|
||||||
|
*) return 0 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# list scripts
|
||||||
|
escr() {
|
||||||
|
cdir="$(pwd)"
|
||||||
|
command -v fzf > /dev/null || return
|
||||||
|
cd "$HOME"
|
||||||
|
nvim "$(find "$SCRIPTDIR" -type f -perm /111 -executable | grep -v "[.]git" | sort | fzf)"
|
||||||
|
cd "$cdir"
|
||||||
|
}
|
||||||
|
|
||||||
# list passwords and copy to xclip
|
# list passwords and copy to xclip
|
||||||
lspass() {
|
lspass() {
|
||||||
command -v pass > /dev/null || exit 1
|
command -v pass > /dev/null || exit 1
|
||||||
|
@ -48,3 +94,11 @@ ssh_server() {
|
||||||
IP="$(tail -n 1 ${SERVERDATA})"
|
IP="$(tail -n 1 ${SERVERDATA})"
|
||||||
ssh ${USER}@${IP}
|
ssh ${USER}@${IP}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
..() {
|
||||||
|
[ -z "$1" ] && cd .. && return
|
||||||
|
|
||||||
|
for i in $(seq $1); do
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
command -v emerge > /dev/null && autoload -U compinit promptinit
|
autoload -U compinit promptinit
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
command -v emerge > /dev/null && promptinit && prompt gentoo
|
command -v emerge > /dev/null && promptinit; prompt gentoo
|
||||||
zstyle ':completion::complete:*' use-cache 1
|
zstyle ':completion::complete:*' use-cache 1
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
zmodload
|
||||||
compinit
|
compinit
|
||||||
_comp_options+=(globdots)
|
_comp_options+=(globdots)
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b2c910a85ed84cb7e5108e7cb3406a2e825a858f
|
Subproject commit 6fd81c5ac854fea5d8bccecc3140f819f82e680d
|
Loading…
Reference in a new issue