Vim, .profile: Lots of changes, like tablines and prefixes
This commit is contained in:
parent
76465119f7
commit
9531d1672a
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -40,3 +40,6 @@
|
|||||||
[submodule ".local/share/dsk"]
|
[submodule ".local/share/dsk"]
|
||||||
path = .local/share/dsk
|
path = .local/share/dsk
|
||||||
url = git@gitlab.com:rehashedsalt/dsk
|
url = git@gitlab.com:rehashedsalt/dsk
|
||||||
|
[submodule ".vim/bundle/tabline.vim"]
|
||||||
|
path = .vim/bundle/tabline.vim
|
||||||
|
url = https://github.com/mkitt/tabline.vim
|
||||||
|
13
.profile
13
.profile
@ -58,7 +58,10 @@ PATH="$desiredpath:$PATH"
|
|||||||
[ -f "/etc/profile.d/bash_completion.sh" ] && . "/etc/profile.d/bash_completion.sh"
|
[ -f "/etc/profile.d/bash_completion.sh" ] && . "/etc/profile.d/bash_completion.sh"
|
||||||
|
|
||||||
# Source ~/.functions, if it exists
|
# Source ~/.functions, if it exists
|
||||||
[ -r "$HOME/.functions" ] && [ "$_baseshell" != "sh" ] && . "$HOME/.functions"
|
[ -r "$HOME/.functions" ] \
|
||||||
|
&& [ "$_baseshell" != "sh" ] \
|
||||||
|
&& [ "$_baseshell" != "dash" ] \
|
||||||
|
&& . "$HOME/.functions"
|
||||||
|
|
||||||
# Define a require function
|
# Define a require function
|
||||||
has() {
|
has() {
|
||||||
@ -200,9 +203,9 @@ _ps1() {
|
|||||||
if [ "$SSH_CLIENT" ]; then
|
if [ "$SSH_CLIENT" ]; then
|
||||||
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${r}${prefix}"
|
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${r}${prefix}"
|
||||||
fi
|
fi
|
||||||
# Append a "restricted" prefix in rbash
|
# Append "vim" in Vim
|
||||||
if [ "$0" = "rbash" ]; then
|
if [ -n "$VIM_TERMINAL" ]; then
|
||||||
prefix="${fg_bold}${fg_grey}rbash${r}:"
|
prefix="${fg_bold}${fg_green}*${r}"
|
||||||
fi
|
fi
|
||||||
# Change PWD color depending on the shell
|
# Change PWD color depending on the shell
|
||||||
case $0 in
|
case $0 in
|
||||||
@ -239,7 +242,7 @@ case "$_baseshell" in
|
|||||||
# Don't do this on ZSH
|
# Don't do this on ZSH
|
||||||
# I have a custom theme for that
|
# I have a custom theme for that
|
||||||
;;
|
;;
|
||||||
sh)
|
sh|dash)
|
||||||
export PS1='\$ '
|
export PS1='\$ '
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
1
.vim/bundle/tabline.vim
Submodule
1
.vim/bundle/tabline.vim
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 69c9698a3240860adaba93615f44778a9ab724b4
|
12
.vimrc
12
.vimrc
@ -1,7 +1,10 @@
|
|||||||
execute pathogen#infect()
|
execute pathogen#infect()
|
||||||
|
|
||||||
|
" Theming
|
||||||
|
if $TERM != 'linux'
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
|
endif
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
@ -32,6 +35,15 @@ set autoread
|
|||||||
" Allow buffer switching without saving
|
" Allow buffer switching without saving
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
|
" Split and tab configuration
|
||||||
|
nnoremap <C-H> <C-W><C-H>
|
||||||
|
nnoremap <C-J> <C-W><C-J>
|
||||||
|
nnoremap <C-K> <C-W><C-K>
|
||||||
|
nnoremap <C-L> <C-W><C-L>
|
||||||
|
|
||||||
|
set splitbelow
|
||||||
|
set splitright
|
||||||
|
|
||||||
" Enable modelines
|
" Enable modelines
|
||||||
set modeline
|
set modeline
|
||||||
set modelines=5
|
set modelines=5
|
||||||
|
Loading…
Reference in New Issue
Block a user