aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-25 22:20:09 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-25 22:20:09 +0100
commit5804d372ba101ab7f05d09f33f21f2f621579e90 (patch)
treee46dc80d0ad1df93fa6e9c98be68871756c9e7fe /config
parentd59a26f882017a62b4119a7649ca3d4b43f65725 (diff)
downloaddotfiles-5804d372ba101ab7f05d09f33f21f2f621579e90.tar.gz
dotfiles-5804d372ba101ab7f05d09f33f21f2f621579e90.tar.bz2
dotfiles-5804d372ba101ab7f05d09f33f21f2f621579e90.zip
Fixing xmonad XDG dirs, Added inputrc for vi mode everywhere
Diffstat (limited to 'config')
-rw-r--r--config/readline/inputrc2
-rw-r--r--config/vim/pluggins.vim2
-rw-r--r--config/vim/vimrc2
-rwxr-xr-xconfig/x11/xinitrc (renamed from config/x11/.xinitrc)0
-rw-r--r--config/zsh/.zshrc3
-rwxr-xr-xconfig/zsh/zprofile9
6 files changed, 11 insertions, 7 deletions
diff --git a/config/readline/inputrc b/config/readline/inputrc
new file mode 100644
index 0000000..db8c777
--- /dev/null
+++ b/config/readline/inputrc
@@ -0,0 +1,2 @@
+set -o vi
+set editing-mode vi
diff --git a/config/vim/pluggins.vim b/config/vim/pluggins.vim
index b7436f2..0915f42 100644
--- a/config/vim/pluggins.vim
+++ b/config/vim/pluggins.vim
@@ -41,6 +41,6 @@ call plug#begin($XDG_DATA_HOME . '/vim/plugged')
" Plug 'jez/vim-superman' " man pages in vim (too slow)
Plug 'vim-scripts/rfc-syntax' " rfc
" Plug 'tacahiroy/ctrlp-funky' " extension to search function
- Plug '/home/charles/git/c_formatter_42.vim'
+ Plug 'cacharle/c_formatter_42.vim'
Plug 'cacharle/doxy42.vim'
call plug#end()
diff --git a/config/vim/vimrc b/config/vim/vimrc
index 8082ea6..b308900 100644
--- a/config/vim/vimrc
+++ b/config/vim/vimrc
@@ -308,7 +308,7 @@ nnoremap <leader>v :call setreg("\"", system("xclip -selection clipboard -o"))<C
let g:c_formatter_42_format_on_save = 0
-let g:gutentags_ctags_exclude = ['doc/*', 'Makefile']
+let g:gutentags_ctags_exclude = ['doc/*', 'Makefile', '.mypy_cache', '.tox']
" let g:gutentags_ctags_exclude_wildignore = 1
let g:goyo_height = 90
diff --git a/config/x11/.xinitrc b/config/x11/xinitrc
index e50cfa6..e50cfa6 100755
--- a/config/x11/.xinitrc
+++ b/config/x11/xinitrc
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc
index 0c69f31..c1e33ce 100644
--- a/config/zsh/.zshrc
+++ b/config/zsh/.zshrc
@@ -10,7 +10,8 @@ case $(tty) in
# %~ path ('~' if $HOME)
# %B/%b start/stop bold
# %B/%b start/stop color
- NEWLINE=$(printf '\n')
+ # shellcheck disable=SC2039
+ NEWLINE=$'\n'
export PROMPT="${NEWLINE}%B%F{blue}%~%f${NEWLINE}%F{red}> %f%b"
;;
*)
diff --git a/config/zsh/zprofile b/config/zsh/zprofile
index 68a9b48..9b4e44d 100755
--- a/config/zsh/zprofile
+++ b/config/zsh/zprofile
@@ -15,11 +15,12 @@ export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
# config
-export XMONAD_CONFIG_HOME="$XDG_CONFIG_HOME"
-export XMONAD_DATA_HOME="$XDG_DATA_HOME"
-export XMONAD_CACHE_HOME="$XDG_CACHE_HOME"
+export XMONAD_CONFIG_HOME="$XDG_CONFIG_HOME/xmonad"
+export XMONAD_DATA_HOME="$XDG_DATA_HOME/xmonad"
+export XMONAD_CACHE_HOME="$XDG_CACHE_HOME/xmonad"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
+export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
# shellcheck disable=SC2016
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
@@ -58,4 +59,4 @@ export MINISHELL_TEST_PAGER=vim
export MINISHELL_TEST_FLAGS=-DMINISHELL_TEST
export WEBSERV_FLAGS=-DWEBSERV_CACHARLE
-[ "$(tty)" = '/dev/tty1' ] && HOME="$XDG_CONFIG_HOME/x11" exec startx
+[ "$(tty)" = '/dev/tty1' ] && exec startx