From fe0415e0b2ec50c866c5d2f297bce112abf6d690 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 17 Feb 2023 15:38:48 +0100 Subject: customize for slackware --- .bashrc | 4 +++- .profile | 2 +- .vimrc | 7 +++++++ .xinitrc | 10 +++++----- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index 739bdb2..b454f54 100644 --- a/.bashrc +++ b/.bashrc @@ -142,10 +142,12 @@ meteo() { # Arch: display package to install for missing commands [ -f '/usr/share/doc/pkgfile/command-not-found.bash' ] && . /usr/share/doc/pkgfile/command-not-found.bash +. /usr/share/bash-completion/bash_completion + # Display git status in prompt . ~/.bash-powerline.sh -eval "$(direnv hook bash)" +# eval "$(direnv hook bash)" #export GITHUB_TOKEN=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 set -o vi diff --git a/.profile b/.profile index 4de3901..be345ab 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # ~/.profile -PATH=~/bin:$PATH:~/go/bin +PATH=~/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH:~/go/bin [ "${SHELL##*/}" = bash ] && . ~/.bashrc diff --git a/.vimrc b/.vimrc index cf4a9e4..ef736a9 100644 --- a/.vimrc +++ b/.vimrc @@ -3,6 +3,8 @@ "set t_te= t_ti= set ls=1 ruler set ai ts=4 sw=4 noet +set nohlsearch +set nois "set mouse=a syntax off filetype on @@ -10,6 +12,11 @@ filetype plugin on filetype plugin indent on let mapleader = "," +" Save all undo and swapfiles at the same place +set directory^=$HOME/.vim/swap// +set undodir=$HOME/.vim/undo// +set undofile + "set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' diff --git a/.xinitrc b/.xinitrc index c384f84..338283d 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,7 +1,7 @@ #!/bin/sh -. /etc/X11/xinit/xinitrc.d/50-systemd-user.sh -#eval $(ssh-agent) +#. /etc/X11/xinit/xinitrc.d/50-systemd-user.sh +eval $(ssh-agent) eval $(gnome-keyring-daemon --start) export SSH_AUTH_SOCK @@ -14,7 +14,7 @@ xinput --set-prop 'SYNA7DAB:00 06CB:CD40 Touchpad' 'libinput Tapping Enabled' 1 xinput --set-prop 'SYNA7DAB:00 06CB:CD40 Touchpad' 'libinput Natural Scrolling Enabled' 1 # Better use /etc/X11/xorg.conf.d/10-keyboard.conf to handle hot plugged keyboards -#setxkbmap fr +setxkbmap fr #xk hdmi @@ -26,6 +26,6 @@ xsetroot -solid rgb:1/3/4 #slock # Start window manager -#exec fvwm +exec fvwm #lxpolkit -exec i3 +#exec i3 -- cgit v1.2.3