Update vim to nvim and update bashrc
This commit is contained in:
parent
964a09b465
commit
55ac27ff96
24
Makefile
24
Makefile
@ -5,17 +5,17 @@
|
||||
#
|
||||
|
||||
SRC = ./src
|
||||
PROGRAMS = calcurse vim newsboat mpv bash compton
|
||||
PROGRAMS = calcurse nvim newsboat mpv bash compton
|
||||
|
||||
.PHONY : install update clean
|
||||
|
||||
install :
|
||||
#vim
|
||||
@which vim > /dev/null 2>&1
|
||||
#nvim
|
||||
@which nvim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "vim found! Installing .vimrc ..."; \
|
||||
[ -f ~/.vimrc ] && mv ~/.vimrc ~/.vimrc.old; \
|
||||
cp $(SRC)/vim/vimrc ~/.vimrc; \
|
||||
echo "nvim found! Installing .vimrc ..."; \
|
||||
[ -f ~/.config/nvim/init.vim ] && mv ~/.config/nvim/init.vim ~/.config/nvim/init.vim.old; \
|
||||
cp $(SRC)/vim/vimrc ~/.config/nvim/init.vim; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
@ -59,10 +59,10 @@ install :
|
||||
|
||||
update:
|
||||
#vim
|
||||
@which vim > /dev/null 2>&1
|
||||
@which nvim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "vim found! Updating vimrc files with existing versions..."; \
|
||||
[ -f ~/.vimrc ] && cp ~/.vimrc $(SRC)/vim/vimrc; \
|
||||
echo "nvim found! Updating vimrc files with existing versions..."; \
|
||||
[ -f ~/.config/nvim/init.vim ] && cp ~/.config/nvim/init.vim $(SRC)/vim/vimrc; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
@ -99,10 +99,10 @@ update:
|
||||
|
||||
clean :
|
||||
#vim
|
||||
@which vim > /dev/null 2>&1
|
||||
@which nvim > /dev/null 2>&1
|
||||
@if [ $$? -eq 0 ]; then \
|
||||
echo "vim found! removing existing config files and reinstalling *.old"; \
|
||||
[ -f ~/.vimrc.old ] && mv ~/.vimrc.old ~/.vimrc; \
|
||||
echo "nvim found! removing existing config files and reinstalling *.old"; \
|
||||
[ -f ~/.config/nvim/init.vim.old ] && mv ~/.config/nvim/init.vim.old ~/.config/nvim/init.vim; \
|
||||
fi
|
||||
#bash
|
||||
@which bash > /dev/null 2>&1
|
||||
|
@ -33,7 +33,6 @@ export STEAM_COMPAT_DATA_PATH=~/.proton/
|
||||
alias l="ls -al"
|
||||
alias lt="ls --human-readable --size -S --classify"
|
||||
alias ..="cd .."
|
||||
alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"
|
||||
alias sha="shasum -a 256"
|
||||
alias untar="tar zxvf"
|
||||
alias sync="sudo emerge --sync && sudo layman -S"
|
||||
@ -69,7 +68,7 @@ fi
|
||||
echo -e "${_PROMPT_HEAD_}#########################"
|
||||
echo -e "${_PROMPT_HEAD_}#Welcome ${_PROMPT_VAR_}$(whoami)"
|
||||
echo -e "${_PROMPT_HEAD_}#EIp : ${_PROMPT_VAR_}$(ifconfig eno1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
|
||||
echo -e "${_PROMPT_HEAD_}#WIp : ${_PROMPT_VAR_}$(ifconfig wlo1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
|
||||
#echo -e "${_PROMPT_HEAD_}#WIp : ${_PROMPT_VAR_}$(ifconfig wlo1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
|
||||
echo -e "${_PROMPT_HEAD_}#PIp : ${_PROMPT_VAR_}$(curl -s ipinfo.io/ip)"
|
||||
echo -e "${_PROMPT_HEAD_}#Time: ${_PROMPT_VAR_}$(date +"%T")"
|
||||
echo -e "${_PROMPT_HEAD_}#Batt: ${_PROMPT_VAR_}${_BATTERY_}%"
|
||||
|
Reference in New Issue
Block a user