run zshrc through shfmt, comment prompt line
This commit is contained in:
parent
4adde9d9f4
commit
427c7b3cf2
@ -25,7 +25,7 @@ export HISTSIZE=999999999
|
||||
export SAVEHIST=$HISTSIZE
|
||||
|
||||
# * * * * * * * * *
|
||||
## Shell Options *
|
||||
# Shell Options *
|
||||
# * * * * * * * * *
|
||||
|
||||
# Setting options
|
||||
@ -52,7 +52,7 @@ bindkey '^n' history-search-forward
|
||||
bindkey ' ' magic-space
|
||||
|
||||
# * * * * * *
|
||||
## Aliases *
|
||||
# Aliases *
|
||||
# * * * * * *
|
||||
|
||||
# core utils
|
||||
@ -102,17 +102,10 @@ touchx() { touch "$@" && chmod +x "$@"; }
|
||||
|
||||
# git
|
||||
lazygit() {
|
||||
git commit -a -m "$*" && git push;
|
||||
git commit -a -m "$*" && git push
|
||||
}
|
||||
lg() {
|
||||
lazygit "$*";
|
||||
}
|
||||
|
||||
# vim
|
||||
swp_vimrc(){
|
||||
mv ~/.vim/vimrc ~/.vim/vimrc.swp
|
||||
mv ~/.vim/vimrc.min ~/.vim/vimrc
|
||||
mv ~/.vim/vimrc.swp ~/.vim/vimrc.min
|
||||
lazygit "$*"
|
||||
}
|
||||
|
||||
# tmux
|
||||
@ -151,7 +144,8 @@ extract() {
|
||||
if [ -f "$n" ]; then
|
||||
case "${n%,}" in
|
||||
*.tar.bz2 | *.tar.gz | *.tar.xz | *.tbz2 | *.tgz | *.txz | *.tar)
|
||||
tar xvf "$n" ;;
|
||||
tar xvf "$n"
|
||||
;;
|
||||
*.lzma) unlzma ./"$n" ;;
|
||||
*.bz2) bunzip2 ./"$n" ;;
|
||||
*.rar) unrar x -ad ./"$n" ;;
|
||||
@ -159,7 +153,8 @@ extract() {
|
||||
*.zip) unzip ./"$n" ;;
|
||||
*.z) uncompress ./"$n" ;;
|
||||
*.7z | *.arj | *.cab | *.chm | *.deb | *.dmg | *.iso | *.lzh | *.msi | *.rpm | *.udf | *.wim | *.xar)
|
||||
7z x ./"$n" ;;
|
||||
7z x ./"$n"
|
||||
;;
|
||||
*.xz) unxz ./"$n" ;;
|
||||
*.exe) cabextract ./"$n" ;;
|
||||
*)
|
||||
@ -177,7 +172,7 @@ extract() {
|
||||
|
||||
bkup() {
|
||||
if [ -f "$1" ]; then
|
||||
cp "${1}" "${1}.bkup.$(date +'%F.%R')";
|
||||
cp "${1}" "${1}.bkup.$(date +'%F.%R')"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -242,7 +237,7 @@ git_prompt() {
|
||||
printf "%s" "%F{reset}]"
|
||||
fi
|
||||
}
|
||||
PROMPT='%F{blue}%~$(git_prompt) %F{yellow}%# %F{reset}'
|
||||
# PROMPT='%F{blue}%~$(git_prompt) %F{green}%# %F{reset}'
|
||||
|
||||
# * * * * * * * * * * * * * * * * * * *
|
||||
# Language Specific Version Managers *
|
||||
@ -308,7 +303,6 @@ if command -v cargo > /dev/null; then
|
||||
src_rust
|
||||
fi
|
||||
|
||||
|
||||
# * * * * * * * * * * * *
|
||||
# MISC $PATH Additions *
|
||||
# * * * * * * * * * * * *
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user