This commit is contained in:
Alexander Neonxp Kiryukhin 2024-08-13 14:35:47 +03:00
parent 7482175e83
commit cf2dc37aac
Signed by: NeonXP
SSH key fingerprint: SHA256:SVt7TjxbVc87m1QYaQziOJ0N3OCFURv2g76gD/UTTXI
7 changed files with 325 additions and 425 deletions

View file

@ -128,3 +128,7 @@
[include]
path = .gitconfig.local
[gpg]
format = ssh
[user]
signingkey = /home/neonxp/.ssh/id_ed25519.pub

0
nvim/.nvimlog Normal file
View file

View file

@ -1,3 +1,12 @@
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
vim.cmd [[packadd packer.nvim]]
require 'options'
require 'keymaps'
require 'autocommands'

View file

@ -1,6 +1,8 @@
local map = vim.api.nvim_set_keymap
local opts = {noremap = true, silent = true}
vim.g.mapleader = " "
-- Tree
map('n', '<C-h>', ':NvimTreeToggle<CR>', opts)

View file

@ -1,11 +1,3 @@
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'nvim-lua/plenary.nvim'

File diff suppressed because it is too large Load diff

View file

@ -10,22 +10,26 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source ~/.config/zsh/powerlevel10k/powerlevel10k.zsh-theme
source ~/.config/zsh/p10k.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle ael-code/zsh-colored-man-pages
antigen apply
# Exports
export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$PATH
# export GOROOT=$HOME/work/go
export GOPATH=$HOME/go
export GOPROXY=https://proxy.neonxp.ru
export EDITOR="nvim"
#export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
export PATH=$PATH:$GOPATH/bin
export GPG_TTY=$(tty)
export LS_OPTIONS='--color=auto'
eval "$(dircolors -b)"
@ -46,7 +50,6 @@ alias cp="cp -i" # confirm before overwriting something
alias df="df -h" # human-readable sizes
alias free="free -m" # show sizes in MB
alias np="nano -w PKGBUILD"
alias more=less
alias gitu='git add . && git commit && git push'
alias g=git
@ -114,16 +117,6 @@ source ~/.config/zsh/conf.d/*.zsh
colors
# Color man pages
export LESS_TERMCAP_mb=$"\E[01;32m"
export LESS_TERMCAP_md=$"\E[01;32m"
export LESS_TERMCAP_me=$"\E[0m"
export LESS_TERMCAP_se=$"\E[0m"
export LESS_TERMCAP_so=$"\E[01;47;34m"
export LESS_TERMCAP_ue=$"\E[0m"
export LESS_TERMCAP_us=$"\E[01;36m"
export LESS=-R
## Plugins section: Enable fish style features
# Use syntax highlighting
@ -166,6 +159,30 @@ bindkey "^[[Z" undo # Shift+tab undo
# ctrl + space accept suggestion
bindkey "^ " autosuggest-accept
dotenv() {
if [ $# -eq 0 ]; then
[ -f .env.gpg ] && set -- .env.gpg "$@"
[ -f .env ] && set -- .env "$@"
fi
set -a
while [ $# -gt 0 ]; do
echo "dotenv: Loading $1"
case "$1" in
*.gpg)
eval "$(gpg --quiet --decrypt --yes "$1")"
;;
*/*)
. "$1"
;;
*)
. "./$1"
esac
shift
done
set +a
}
# Set terminal window and tab/icon title
#
# usage: title short_tab_title [long_window_title]