mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
update of few files
This commit is contained in:
@@ -22,3 +22,10 @@ elif setup == "v":
|
|||||||
pos="--above"
|
pos="--above"
|
||||||
|
|
||||||
subprocess.run(["xrandr", "--output", d[1], pos, "eDP-1"])
|
subprocess.run(["xrandr", "--output", d[1], pos, "eDP-1"])
|
||||||
|
|
||||||
|
if len(sys.argv)>2:
|
||||||
|
if sys.argv[2] == "4k":
|
||||||
|
print("4k")
|
||||||
|
# xrandr --output HDMI-2 --mode 3840x2160
|
||||||
|
subprocess.run(["xrandr", "--output", d[1], "--mode", "3840x2160"])
|
||||||
|
|
||||||
|
|||||||
4
init.vim
4
init.vim
@@ -170,6 +170,8 @@ nnoremap <silent> KK :call LanguageClient#textDocument_hover()<CR>
|
|||||||
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||||
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
||||||
|
|
||||||
|
noremap <silent> <C-c> :cn<CR>
|
||||||
|
|
||||||
" rainbowparentheses
|
" rainbowparentheses
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
|
|
||||||
@@ -190,7 +192,7 @@ let g:gruvbox_contrast_light = 'hard'
|
|||||||
let g:srcery_italic = 1
|
let g:srcery_italic = 1
|
||||||
|
|
||||||
set colorcolumn=100
|
set colorcolumn=100
|
||||||
set textwidth=80
|
" set textwidth=80
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ cat .bashrc >> ~/.bashrc
|
|||||||
source .bashrc
|
source .bashrc
|
||||||
|
|
||||||
# go
|
# go
|
||||||
echo "installing go 1.16.7"
|
echo "installing go 1.17.1"
|
||||||
wget https://golang.org/dl/go1.16.7.linux-amd64.tar.gz
|
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
|
||||||
tar -C /usr/local -xzf go1.16.7.linux-amd64.tar.gz
|
tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
|
||||||
|
|
||||||
# nodejs
|
# nodejs
|
||||||
echo "installing nodejs v14"
|
echo "installing nodejs v14"
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
|||||||
RUN wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
|
RUN wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
|
||||||
tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
|
tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
|
||||||
|
|
||||||
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./bashrc
|
RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./.bashrc
|
||||||
RUN echo "export GOPATH=$HOME/go" >> ./bashrc
|
RUN echo "export GOPATH=$HOME/go" >> ./.bashrc
|
||||||
|
|
||||||
RUN git clone https://github.com/arnaucube/configs.git && \
|
RUN git clone https://github.com/arnaucube/configs.git && \
|
||||||
cp configs/.vimrc ~/ && \
|
cp configs/.vimrc ~/ && \
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
path=${0::-3}
|
||||||
|
|
||||||
if [[ $1 == "help" ]]; then
|
if [[ $1 == "help" ]]; then
|
||||||
echo "lc (Launch Container) help:
|
echo "lc (Launch Container) help:
|
||||||
===========================
|
===========================
|
||||||
@@ -18,15 +20,16 @@ elif [[ $1 == "new" ]]; then
|
|||||||
lang=$2
|
lang=$2
|
||||||
|
|
||||||
if [[ $lang == "rust" ]]; then
|
if [[ $lang == "rust" ]]; then
|
||||||
lang="Dockerfile.rust"
|
lang="$path/Dockerfile.rust"
|
||||||
elif [[ $lang == "go" ]]; then
|
elif [[ $lang == "go" ]]; then
|
||||||
lang="Dockerfile.go"
|
lang="$path/Dockerfile.go"
|
||||||
else
|
else
|
||||||
echo "available dockerfiles: go, rust"
|
echo "available dockerfiles: go, rust"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
echo $lang
|
||||||
|
|
||||||
sudo docker build -t $4 -f $lang .
|
sudo docker build -t $4 -f $lang $path/.
|
||||||
sudo docker run -it --entrypoint=/bin/bash --name $3 $4
|
sudo docker run -it --entrypoint=/bin/bash --name $3 $4
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ $1 == "stop" ]]; then
|
elif [[ $1 == "stop" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user