Refactoring
- Added macos
This commit is contained in:
parent
03a7616e8c
commit
2c1ccaffd1
47 changed files with 76 additions and 33 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
|||
[submodule "linux/.config/mutt/gruvbox"]
|
||||
path = linux/.config/mutt/gruvbox
|
||||
[submodule "global/.config/mutt/gruvbox"]
|
||||
path = global/.config/mutt/gruvbox
|
||||
url = https://git.sthu.org/repos/mutt-gruvbox.git
|
||||
|
|
|
@ -1,30 +1,10 @@
|
|||
# User
|
||||
set from = "foozzione@gmail.com"
|
||||
set realname = "Ihor Tkachenko"
|
||||
|
||||
# Gmail
|
||||
set imap_user = "foozzione@gmail.com"
|
||||
set smtp_url = "smtps://foozzione@gmail.com@smtp.gmail.com:465/"
|
||||
set smtp_authenticators = 'gssapi:login'
|
||||
source ./settings
|
||||
source ./paths
|
||||
|
||||
# Ensure TLS is enforced
|
||||
set ssl_starttls = yes
|
||||
set ssl_force_tls = yes
|
||||
|
||||
# My mailboxes
|
||||
set folder = "imaps://imap.gmail.com:993/[Gmail]"
|
||||
set spoolfile = "+Вся почта"
|
||||
set postponed = "+Черновики"
|
||||
set record = "+Отправленные"
|
||||
set trash = "+Корзина"
|
||||
|
||||
mailboxes ="Вся почта" =Важное =Помеченные =Черновики =Отправленные =Спам =Корзина
|
||||
|
||||
# Where to put the stuff
|
||||
set header_cache = "~/.cache/mutt/headers"
|
||||
set message_cachedir = "~/.cache/mutt/bodies"
|
||||
set certificate_file = "~/.cache/mutt/certificates"
|
||||
unset record
|
||||
|
||||
# settings
|
||||
|
@ -96,12 +76,8 @@ bind pager G bottom
|
|||
bind attach,index g first-entry
|
||||
bind attach,index G last-entry
|
||||
|
||||
# link to mailcap file
|
||||
set mailcap_path = "~/.config/mutt/mailcap"
|
||||
# open attachments with mailcap with <return>
|
||||
bind attach <return> view-mailcap
|
||||
# save attachments to a folder
|
||||
macro attach s '<save-entry> <bol>~/Documents/attachments/<eol>' 'save attachment'
|
||||
auto_view text/html # automatically show html (mailcap uses lynx)
|
||||
|
||||
#urlscan
|
Binary file not shown.
|
@ -69,10 +69,6 @@ alias wr='curl wttr.in'
|
|||
## python
|
||||
alias python='python3'
|
||||
alias py='python'
|
||||
## Open Suse
|
||||
alias zup='sudo zypper dup'
|
||||
alias zin='sudo zypper in'
|
||||
alias rbf='sudo systemctl reboot --firmware-setup'
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
export EDITOR='vim'
|
||||
|
@ -104,10 +100,10 @@ export PATH=$PATH:$GOPATH/bin
|
|||
export PATH=$PATH:/usr/local/go/bin
|
||||
## color
|
||||
export TERM=tmux-256color
|
||||
## docker
|
||||
export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
export VOLTA_HOME="$HOME/.volta"
|
||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||
|
||||
source ./.zshrc-additional
|
||||
|
10
linux/.config/mutt/paths
Normal file
10
linux/.config/mutt/paths
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Where to put the stuff
|
||||
set header_cache = "~/.cache/mutt/headers"
|
||||
set message_cachedir = "~/.cache/mutt/bodies"
|
||||
set certificate_file = "~/.cache/mutt/certificates"
|
||||
|
||||
# link to mailcap file
|
||||
set mailcap_path = "~/.config/mutt/mailcap"
|
||||
|
||||
# save attachments to a folder
|
||||
macro attach s '<save-entry> <bol>~/Documents/attachments/<eol>' 'save attachment'
|
7
linux/.zshrc-additional
Normal file
7
linux/.zshrc-additional
Normal file
|
@ -0,0 +1,7 @@
|
|||
## Open Suse
|
||||
alias zup='sudo zypper dup'
|
||||
alias zin='sudo zypper in'
|
||||
alias rbf='sudo systemctl reboot --firmware-setup'
|
||||
|
||||
## docker
|
||||
export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
17
macos/.config/alacritty/keybindings.toml
Normal file
17
macos/.config/alacritty/keybindings.toml
Normal file
|
@ -0,0 +1,17 @@
|
|||
[keyboard]
|
||||
bindings = [
|
||||
{key = "W", mods = "Command", chars = "\u001BW" },
|
||||
{key = "X", mods = "Command", chars = "\u001BX" },
|
||||
{key = 30, mods = "Command|Shift", chars = "\u001Bn" },
|
||||
{key = 33, mods = "Command|Shift", chars = "\u001Bp" },
|
||||
{key = "Z", mods = "Command", chars = "\u0001w" },
|
||||
{key = "T", mods = "Command", chars = "\u001Bt" },
|
||||
{key = "E", mods = "Command", chars = "\u001Be" },
|
||||
{key = "D", mods = "Command", chars = "\u001Bd" },
|
||||
# tmux resurrect plugin
|
||||
{key = "R", mods = "Command", chars = "\u0001\u0012" },
|
||||
{key = "S", mods = "Command", chars = "\u0001\u0013" },
|
||||
# move cursor per word
|
||||
{key = "Right", mods = "Command", chars = "\u001BF" },
|
||||
{key = "Left", mods = "Command", chars = "\u001BB" },
|
||||
]
|
17
macos/.config/keybindings.toml
Normal file
17
macos/.config/keybindings.toml
Normal file
|
@ -0,0 +1,17 @@
|
|||
[keyboard]
|
||||
bindings = [
|
||||
{key = "W", mods = "Command", chars = "\u001BW" },
|
||||
{key = "X", mods = "Command", chars = "\u001BX" },
|
||||
{key = 30, mods = "Command|Shift", chars = "\u001Bn" },
|
||||
{key = 33, mods = "Command|Shift", chars = "\u001Bp" },
|
||||
{key = "Z", mods = "Command", chars = "\u0001w" },
|
||||
{key = "T", mods = "Command", chars = "\u001Bt"},
|
||||
{key = "E", mods = "Command", chars = "\u001Be"},
|
||||
{key = "D", mods = "Command", chars = "\u001Bd"},
|
||||
# tmux resurrect plugin
|
||||
{key = "R", mods = "Command", chars = "\u0001\u0012" },
|
||||
{key = "S", mods = "Command", chars = "\u0001\u0013" },
|
||||
# move cursor per word
|
||||
{key = "Right", mods = "Alt", chars = "\u001BF"},
|
||||
{key = "Left", mods = "Alt", chars = "\u001BB"},
|
||||
]
|
10
macos/.config/mutt/paths
Normal file
10
macos/.config/mutt/paths
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Where to put the stuff
|
||||
set header_cache = "$HOME/Library/Caches/mutt/headers"
|
||||
set message_cachedir = "$HOME/Library/Caches/mutt/bodies"
|
||||
set certificate_file = "$HOME/Library/Caches/mutt/certificates"
|
||||
|
||||
# link to mailcap file
|
||||
set mailcap_path = "$HOME/.config/mutt/mailcap"
|
||||
|
||||
# save attachments to a folder
|
||||
macro attach s '<save-entry> <bol>$HOME/Documents/attachments/<eol>' 'save attachment'
|
10
macos/.zshrc-additional
Normal file
10
macos/.zshrc-additional
Normal file
|
@ -0,0 +1,10 @@
|
|||
## brew
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
alias bu='brew update'
|
||||
alias bug='brew upgrade'
|
||||
fi
|
||||
|
||||
## python 3.12
|
||||
#export PATH=/opt/homebrew/opt/python@3.12/libexec/bin:$PATH
|
||||
## python 3.11
|
||||
export PATH=/opt/homebrew/opt/python@3.11/libexec/bin:$PATH
|
Loading…
Add table
Reference in a new issue