commit e9335321a50ac091b5b29f408c2b89c6ec38fc46
parent 1ad8df254ed3dff272ccfdc267c1d007b5e0d430
Author: Anton Konyahin <me@konyahin.xyz>
Date: Thu, 27 Jun 2024 20:31:28 +0300
sh: add zsh
Diffstat:
5 files changed, 67 insertions(+), 71 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,6 +1,6 @@
MIT/X Consortium License
-© 2023 Anton Konyahin <me@konyahin.xyz>
+© 2024 Anton Konyahin <me@konyahin.xyz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
diff --git a/isync/.config/dot-mbsyncrc b/isync/.config/dot-mbsyncrc
@@ -20,6 +20,6 @@ Subfolders Verbatim
Channel epik
Far :epik-remote:
Near :epik-local:
-Sync Pull
+Sync All
Patterns INBOX Spam
SyncState *
diff --git a/sh/.config/ksh/kshrc b/sh/.config/ksh/kshrc
@@ -2,19 +2,8 @@
. ~/.profile
-export PATH=~/.bin:~/.local/bin:$PATH
-export LC_ALL=ru_RU.UTF-8
-export LANG=ru_RU.UTF-8
-export LANGUAGE=ru_RU.UTF-8
-
-export NAME='Anton Konyahin'
-export EMAIL='me@konyahin.xyz'
-
-export EDITOR='nvi'
-export ALTERNATE_EDITOR='emacs -nw'
-export PAGER=less
-export BROWSER=open
-export PASSWORD_STORE_DIR="$HOME/data/pass"
+alias reload='. ~/.config/ksh/kshrc'
+alias esh='$EDITOR ~/.config/ksh/kshrc'
set -o emacs
HISTCONTROL=ignoredups:ignorespace
@@ -22,63 +11,10 @@ HISTSIZE=1000
HISTFILE=$HOME/.ksh_history
PS1='${USER}@\h:\W\$ '
-alias z=zathura
-alias e='$EDITOR'
-alias em='$ALTERNATE_EDITOR'
-alias v=nview
-alias nb='newsboat && bookmark count'
-alias m=mutt
-alias isync='mbsync -c ~/.config/.mbsyncrc -a && mfilter ~/data/mail/fastmail'
-alias l='ls -p -A'
-alias lr='l -R'
-
-alias esh='$EDITOR ~/.config/ksh/kshrc'
-alias evi='$EDITOR ~/.nexrc'
-alias enb='$EDITOR ~/.newsboat/config'
-alias enbu='$EDITOR ~/.newsboat/urls'
-
-alias ef='$EDITOR $(find . | fzf)'
-alias et='$EDITOR -t $(cat tags | awk "{print \$1}" | fzf)'
-alias en='$EDITOR "$(find ~/public_gopher -type f | fzf)"'
-alias vn='v "$(find ~/public_gopher -type f | fzf)"'
-alias edot='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"'
-
-alias escratch='$EDITOR $SCRATCH_PATH'
-alias etodo='$EDITOR -c "source ~/.local/share/nvi/todotxt" $TODO_PATH'
-
alias cvsupdate='cvs -q up -Pd -A'
alias cvsdiff='cvs diff -uNp'
alias cvsrestore='cvs update -C'
-alias gpush='git remote | xargs -n 1 git push'
-
-alias notes="vf1 localhost/1/~anton"
-
-fzf-in () {
- found=$(find . -not -path "*.git*" | fzf)
- [ -d "$found" ] && cd "$found" && return
- [ -f "$found" ] && $EDITOR "$found" && return
-}
-alias /=fzf-in
-alias //='cd ~/; /'
-
-me () {
- $EDITOR $(make 2>&1 | grep '^.*\.[ch]:' | fzf | awk -F: '{printf "-c %s %s\n", $2, $1}')
-}
-
-jp () {
- projects=$(find ~/project/ -type d -maxdepth 1 -mindepth 1 ! -name konyahin)
- personal=$(find ~/project/konyahin -type d -maxdepth 1 -mindepth 1)
- selected=$(echo "$projects\n$personal" | fzf)
- [ -n "$selected" ] && cd "$selected"
-}
-
-cheat () {
- curl "cheat.sh/$1" | less -r
-}
-
-alias reload='. ~/.config/ksh/kshrc'
-
whatabout () {
$PAGER "/usr/local/share/doc/pkg-readmes/$1"
}
diff --git a/sh/.profile b/sh/.profile
@@ -1,3 +1,56 @@
-export NOTES_PATH="/home/anton/data/notes"
-export SCRATCH_PATH="$NOTES_PATH/scratch.md"
-export TODO_PATH="$NOTES_PATH/todo.txt"
+export PATH=~/.bin:~/.local/bin:$PATH
+export LC_ALL=ru_RU.UTF-8
+export LANG=ru_RU.UTF-8
+export LANGUAGE=ru_RU.UTF-8
+
+export NAME='Anton Konyahin'
+export EMAIL='me@konyahin.xyz'
+
+export EDITOR='nvi'
+export ALTERNATE_EDITOR='emacs -nw'
+export PAGER=less
+export BROWSER=open
+export PASSWORD_STORE_DIR="$HOME/data/pass"
+
+alias z=zathura
+alias e='$EDITOR'
+alias em='$ALTERNATE_EDITOR'
+alias v=nview
+alias nb='newsboat && bookmark count'
+alias m='mutt && isync'
+alias isync='mbsync -c ~/.config/.mbsyncrc -a && mfilter ~/data/mail/fastmail'
+alias l='ls -p -A'
+alias lr='l -R'
+
+alias evi='$EDITOR ~/.nexrc'
+alias enb='$EDITOR ~/.newsboat/config'
+alias enbu='$EDITOR ~/.newsboat/urls'
+
+alias ef='$EDITOR $(find . | fzf)'
+alias et='$EDITOR -t $(cat tags | awk "{print \$1}" | fzf)'
+alias edot='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"'
+
+alias gpush='git remote | xargs -n 1 git push'
+
+fzf-in () {
+ found=$(find . -not -path "*.git*" | fzf)
+ [ -d "$found" ] && cd "$found" && return
+ [ -f "$found" ] && $EDITOR "$found" && return
+}
+alias /=fzf-in
+alias //='cd ~/; /'
+
+me () {
+ $EDITOR $(make 2>&1 | grep '^.*\.[ch]:' | fzf | awk -F: '{printf "-c %s %s\n", $2, $1}')
+}
+
+jp () {
+ projects=$(find ~/project/ -type d -maxdepth 1 -mindepth 1 ! -name konyahin)
+ personal=$(find ~/project/konyahin -type d -maxdepth 1 -mindepth 1)
+ selected=$(echo "$projects\n$personal" | fzf)
+ [ -n "$selected" ] && cd "$selected"
+}
+
+cheat () {
+ curl "cheat.sh/$1" | less -r
+}
diff --git a/sh/dot-zshrc b/sh/dot-zshrc
@@ -0,0 +1,6 @@
+export PATH="$HOME/.cargo/bin:$PATH"
+
+source .profile
+
+alias reload='source ~/.zshrc'
+alias esh='$EDITOR ~/.zshrc'
+\ No newline at end of file