Compare commits

...

5 Commits

Author SHA1 Message Date
26f256c5d2
Adding coc-cpp in gentoo init.vim 2021-05-01 21:52:07 +02:00
6edce6ed61
Added fortigate bin if exist 2021-05-01 21:51:35 +02:00
4583c497e8
Added quasselclient 2021-05-01 21:51:13 +02:00
c8d617c41b
Added cpp,c debuger
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-05-01 21:24:22 +02:00
552675eb7a
Added to logs auto refresh
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-04-24 00:41:14 +02:00
7 changed files with 67 additions and 14 deletions

View File

@ -22,6 +22,22 @@
"args": ["start"],
"filetypes": ["sh"],
"ignoredRootPaths": ["~"]
},
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp"],
"rootPatterns": [
".ccls",
"compile_commands.json",
".vim/",
".git/",
".hg/"
],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
},
"solargraph.commandPath": "~/.gem/ruby/2.6.0/bin/solargraph",

View File

@ -75,6 +75,9 @@ call plug#begin('~/.config/nvim/plugged')
" coc-diagnostic
Plug 'iamcco/coc-diagnostic'
" coc-cpp coc-c
" emerge dev-util/ccls
" Enable gentoo-syntax in vim
Plug 'gentoo/gentoo-syntax'
Plug 'tpope/vim-commentary'

23
.local/bin/Logc Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
NUMBER="-1"
while true
do
clear
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(sudo find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
LEN=${#LOGS[@]}
for (( i=0; i<$LEN; i++ ));
do
echo "$(( $i + 1 )) - ${LOGS[$i]}"
done
echo
read -rsp $'Select number to show logs...\n' -t2 -n1 NUMBER
[[ $NUMBER -gt 0 ]] && break
done
echo -e "\n\e[93m File: ${LOGS[$NUMBER-1]} \e[0m\n"
sudo cat ${LOGS[$NUMBER-1]}

View File

@ -1 +0,0 @@
emerge-logs

23
.local/bin/Logs Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
NUMBER="-1"
while true
do
clear
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(sudo find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
LEN=${#LOGS[@]}
for (( i=0; i<$LEN; i++ ));
do
echo "$(( $i + 1 )) - ${LOGS[$i]}"
done
echo
read -rsp $'Select number to show logs...\n' -t2 -n1 NUMBER
[[ $NUMBER -gt 0 ]] && break
done
echo -e "\n\e[93m File: ${LOGS[$NUMBER-1]} \e[0m\n"
sudo tail -f ${LOGS[$NUMBER-1]}

View File

@ -1,13 +0,0 @@
#!/bin/bash
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(sudo find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
LEN=${#LOGS[@]}
for (( i=0; i<$LEN; i++ ));
do
echo "$(( $i + 1 )) - ${LOGS[$i]}"
done
echo
read -p 'Select number to show logs: ' NUMBER
sudo tail -f ${LOGS[$NUMBER-1]}

View File

@ -24,6 +24,7 @@ QT_SCALE_FACTOR=1.5 keepassxc &
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc
megasync &
ibus-daemon&
quasselclient&
# Two monitors are enabled?
if [[ $(mons | awk '/Monitors/{print $2}') = 2 ]]

1
.zshrc
View File

@ -107,4 +107,5 @@ alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
# Cleaning-up
export PATH=$HOME/.local/bin:$PATH
[ -d $HOME/fortigate/bin ] && export PATH=$HOME/fortigate/bin:$PATH
export HISTTIMEFORMAT="%F %T "