Compare commits

..

10 Commits

Author SHA1 Message Date
seajee
77c5439b1c [bash] Add __git_branch to PROMPT_COMMAND 2025-11-01 15:12:35 +01:00
seajee
ea3323077e [neovim] Include new plugin 2025-10-26 16:40:50 +01:00
seajee
bb1ce7da78 [neovim] fix resize keymaps 2025-09-05 16:00:57 +02:00
seajee
6effb10d9c [alacritty] godo 2025-09-05 15:03:43 +02:00
seajee
56e79be8a6 [tmux] fix colors 2025-08-16 19:23:11 +02:00
seajee
34a773846b [neovim] change keymaps 2025-08-14 20:14:59 +02:00
seajee
47bef879f4 [neovim] window movement keymaps 2025-08-14 19:59:45 +02:00
seajee
9867583f7a [ssh] bruh 2025-08-13 17:40:35 +02:00
seajee
a61589e2ae [bash] add grub-update alias 2025-08-13 17:17:34 +02:00
seajee
cc887436a3 [neovim] Meta 2025-08-13 06:50:35 +02:00
5 changed files with 37 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
[window] [window]
startup_mode = "Maximized" startup_mode = "Maximized"
opacity = 1 opacity = 1
dynamic_padding = true dynamic_padding = false
[font] [font]
normal.family = "Iosevka" normal.family = "Iosevka"

View File

@@ -17,6 +17,7 @@ alias plasma='/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wa
alias yt-mp3='yt-dlp --output "%(artist)s - %(title)s.%(ext)s" --extract-audio --embed-metadata --embed-thumbnail --audio-format mp3 --audio-quality 0' alias yt-mp3='yt-dlp --output "%(artist)s - %(title)s.%(ext)s" --extract-audio --embed-metadata --embed-thumbnail --audio-format mp3 --audio-quality 0'
alias yt-mp4='yt-dlp --format "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]"' alias yt-mp4='yt-dlp --format "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]"'
alias lg='looking-glass-client -s' alias lg='looking-glass-client -s'
alias grub-update='sudo grub-mkconfig -o /boot/grub/grub.cfg'
# Environment variables # Environment variables
export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/.local/bin"
@@ -24,9 +25,17 @@ export PATH="$PATH:$HOME/.local/bin"
# Theme # Theme
BLUE="\[\e[0;34m\]" BLUE="\[\e[0;34m\]"
RED="\[\e[0;91m\]" RED="\[\e[0;91m\]"
YELLOW="\e[0;33m"
RESET="\[\e[0m\]" RESET="\[\e[0m\]"
PS1="[\u@$RED\h$RESET \w]\$$RESET " __git_branch() {
local branch="$(git branch --show-current 2>/dev/null)"
if [[ -n "$branch" ]]; then
echo " $YELLOW$branch$RESET"
fi
}
PROMPT_COMMAND='PS1="[\u@$RED\h$RESET \w$(__git_branch)]\$$RESET "'
# Setup zoxide # Setup zoxide
eval "$(zoxide init --cmd cd bash)" eval "$(zoxide init --cmd cd bash)"

View File

@@ -60,10 +60,6 @@ map("n", "<leader>dm", ":delmarks!<CR>")
map("n", "<leader>x", ":!chmod +x %<CR>") map("n", "<leader>x", ":!chmod +x %<CR>")
map("n", "<leader>cd", ":cd %:h | pwd<CR>") map("n", "<leader>cd", ":cd %:h | pwd<CR>")
-- Move through quick fixes
map("n", "<C-j>", ":cnext<CR>")
map("n", "<C-k>", ":cprev<CR>")
-- Tabs -- Tabs
map("n", "<leader>tt", ":tabnew<CR>") map("n", "<leader>tt", ":tabnew<CR>")
map("n", "<leader>tw", ":tabclose<CR>") map("n", "<leader>tw", ":tabclose<CR>")
@@ -73,8 +69,8 @@ map("n", "<leader>tf", ":tabfirst<CR>")
map("n", "<leader>tl", ":tablast<CR>") map("n", "<leader>tl", ":tablast<CR>")
-- Buffers -- Buffers
map("n", "<leader>bc", ":enew<CR>") map("n", "<leader>n", ":enew<CR>")
map("n", "<leader>bd", ":bdelete<CR>") map("n", "<leader>db", ":bdelete<CR>")
map("n", "<TAB>", ":bnext<CR>") map("n", "<TAB>", ":bnext<CR>")
map("n", "<S-TAB>", ":bprevious<CR>") map("n", "<S-TAB>", ":bprevious<CR>")
map("n", "<leader>\\", ":buffer term<CR>") map("n", "<leader>\\", ":buffer term<CR>")
@@ -91,11 +87,21 @@ map("v", "K", ":move '<-2<CR>gv=gv")
-- Run last command in terminal -- Run last command in terminal
map("n", "<leader>r", ":buffer term<CR>i<Up><CR><C-\\><C-n>") map("n", "<leader>r", ":buffer term<CR>i<Up><CR><C-\\><C-n>")
-- Window movement
map("n", "<M-h>", "<C-w>h")
map("n", "<M-j>", "<C-w>j")
map("n", "<M-k>", "<C-w>k")
map("n", "<M-l>", "<C-w>l")
map("t", "<M-h>", "<cmd>wincmd h<CR>")
map("t", "<M-j>", "<cmd>wincmd j<CR>")
map("t", "<M-k>", "<cmd>wincmd k<CR>")
map("t", "<M-l>", "<cmd>wincmd l<CR>")
-- Window resizing -- Window resizing
map("n", "<C-Up>", "<cmd>resize -2<CR>") map("n", "<M-Up>", "<cmd>resize -2<CR>")
map("n", "<C-Down>", "<cmd>resize +2<CR>") map("n", "<M-Down>", "<cmd>resize +2<CR>")
map("n", "<C-Left>", "<cmd>vertical resize -2<CR>") map("n", "<M-Left>", "<cmd>vertical resize -2<CR>")
map("n", "<C-Right>", "<cmd>resize +2<CR>") map("n", "<M-Right>", "<cmd>vertical resize +2<CR>")
-- Listchars -- Listchars
local listchars = { local listchars = {
@@ -174,16 +180,23 @@ require("lazy").setup({
-- Git integration -- Git integration
{ "tpope/vim-fugitive" }, { "tpope/vim-fugitive" },
{ "lewis6991/gitsigns.nvim", opts = {} } { "lewis6991/gitsigns.nvim", opts = {} },
-- Text aligning
{ "Vonr/align.nvim", branch = "v2" }
}) })
-- Plugin keymaps -- Plugin keymaps
map("n", "<leader>f", ":Pick files<CR>") map("n", "<leader>f", ":Pick files<CR>")
map("n", "<leader>b", ":Pick buffers<CR>")
map("n", "<leader>u", ":UndotreeToggle<CR>") map("n", "<leader>u", ":UndotreeToggle<CR>")
map("n", "<leader>gs", ":Git<CR>") map("n", "<leader>gs", ":Git<CR>")
map("n", "<leader>gt", ":Gitsigns toggle_signs<CR>") map("n", "<leader>gt", ":Gitsigns toggle_signs<CR>")
map("n", "<leader>gp", ":Gitsigns preview_hunk<CR>") map("n", "<leader>gp", ":Gitsigns preview_hunk<CR>")
map("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>") map("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>")
map("x", "<leader>a", function()
require("align").align_to_string({ preview = true, regex = true })
end)
-- Colorscheme -- Colorscheme
cmd.colorscheme("gruber-darker") cmd.colorscheme("gruber-darker")

View File

@@ -1,5 +1 @@
ServerAliveInterval 60 ServerAliveInterval 30
Host lampone
Hostname vinco.undo.it
User pi

View File

@@ -4,6 +4,7 @@ set-window-option -g mode-keys vi
bind-key -n C-t set-option -g status bind-key -n C-t set-option -g status
set-option -a terminal-features "alacritty:RGB"
# https://github.com/sbernheim4/dotfiles/blob/master/tmux/.tmux.conf # https://github.com/sbernheim4/dotfiles/blob/master/tmux/.tmux.conf