Sync package lists.
This commit is contained in:
@@ -6,14 +6,14 @@ fi
|
|||||||
alias ,git='git config --global user.name "Shaun Reed" && git config --global user.email "shaunrd0@gmail.com"'
|
alias ,git='git config --global user.name "Shaun Reed" && git config --global user.email "shaunrd0@gmail.com"'
|
||||||
# Some aliases don't make sense in the docker image, like shortcuts to fix plasmashell.
|
# Some aliases don't make sense in the docker image, like shortcuts to fix plasmashell.
|
||||||
if [ -f /.dockerenv ]; then
|
if [ -f /.dockerenv ]; then
|
||||||
export DOT_PACKAGES='git stow vim tmux ranger clang wget curl'
|
export DOT_PACKAGES='git stow vim tmux ranger clang wget curl golang-go'
|
||||||
alias ,update='apt update -y && apt upgrade -y && apt upgrade --fix-broken --fix-missing --auto-remove'
|
alias ,update='apt update -y && apt upgrade -y && apt upgrade --fix-broken --fix-missing --auto-remove'
|
||||||
alias ,init='apt update -y && apt install $DOT_PACKAGES -y'
|
alias ,init='apt update -y && apt install -y $DOT_PACKAGES'
|
||||||
alias ,swap='swapoff -a && swapon -a'
|
alias ,swap='swapoff -a && swapon -a'
|
||||||
else
|
else
|
||||||
export DOT_PACKAGES='git stow vim xsel xclip tmux ranger clang yakuake wget curl'
|
export DOT_PACKAGES='git stow vim vim-gtk3 xsel xclip tmux ranger clang yakuake wget curl golang-go'
|
||||||
alias ,update='sudo apt update -y && sudo apt upgrade -y && sudo apt upgrade --fix-broken --fix-missing --auto-remove'
|
alias ,update='sudo apt update -y && sudo apt upgrade -y && sudo apt upgrade --fix-broken --fix-missing --auto-remove'
|
||||||
alias ,init='sudo apt update -y && sudo apt install $DOT_PACKAGES'
|
alias ,init='sudo apt update -y && sudo apt install -y $DOT_PACKAGES'
|
||||||
# Clear kscreen cached settings
|
# Clear kscreen cached settings
|
||||||
alias ,kscreen='rm -rf ~/.local/share/kscreen/*'
|
alias ,kscreen='rm -rf ~/.local/share/kscreen/*'
|
||||||
# Restart plasmashell
|
# Restart plasmashell
|
||||||
@@ -25,11 +25,6 @@ fi
|
|||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
# some more ls aliases
|
|
||||||
alias ll='ls -alF'
|
|
||||||
alias la='ls -A'
|
|
||||||
alias l='ls -CF'
|
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# sleep 10; alert
|
||||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
@@ -104,3 +99,12 @@ if ! [ command -v conda &>/dev/null ] && [ -e ~/Code/Clones/mambaforge/bin/conda
|
|||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# For shared systems where history is not desired.
|
||||||
|
# ln -sf /dev/null ~/.bash_history
|
||||||
|
# HISTFILE=/dev/null
|
||||||
|
|
||||||
|
# Avoid duplicates in bash history.
|
||||||
|
HISTCONTROL=ignoredups:erasedups
|
||||||
|
# When the shell exits, append to the history file instead of overwriting it.
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
.bashrc
|
|
||||||
.bash_secrets
|
.bash_secrets
|
||||||
.vim/.netrwhist
|
.vim/.netrwhist
|
||||||
.idea/
|
.idea/
|
||||||
|
|||||||
2
.inputrc
Normal file
2
.inputrc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
.git
|
||||||
|
.gitmodules
|
||||||
|
.gitignore
|
||||||
README.md
|
README.md
|
||||||
setup.sh
|
setup.sh
|
||||||
Dockerfile
|
Dockerfile
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ set -g mouse on
|
|||||||
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection"
|
bind -n MouseDown2Pane run "tmux set-buffer -b primary_selection \"$(xsel -o)\"; tmux paste-buffer -b primary_selection; tmux delete-buffer -b primary_selection"
|
||||||
|
|
||||||
# List of plugins and their settings
|
# List of plugins and their settings
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
||||||
set -g @scroll-speed-num-lines-per-scroll 2
|
set -g @scroll-speed-num-lines-per-scroll 2
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
|||||||
4
.vimrc
4
.vimrc
@@ -25,7 +25,7 @@ set directory=~/.vim/swap//,~/tmp/,/var/tmp/,/tmp/,.
|
|||||||
set backupdir=~/.vim/backup//,~/tmp/,/var/tmp/,/tmp/,.
|
set backupdir=~/.vim/backup//,~/tmp/,/var/tmp/,/tmp/,.
|
||||||
" Persistant undo
|
" Persistant undo
|
||||||
" :help undo-persistence
|
" :help undo-persistence
|
||||||
set undodir=~/.vim/undo//,~/tmp/,/var/tmp/,/tmp/,.
|
set undodir=~/.vim/undodir//,~/tmp/,/var/tmp/,/tmp/,.
|
||||||
set undofile
|
set undofile
|
||||||
|
|
||||||
" Combine vim clipboard with global clipboard buffer
|
" Combine vim clipboard with global clipboard buffer
|
||||||
@@ -141,7 +141,7 @@ nmap <silent> <C-j> <Plug>(ale_next_wrap)
|
|||||||
"let g:colorizer_colornames = 0 " Don't color literal names, like red, green, etc
|
"let g:colorizer_colornames = 0 " Don't color literal names, like red, green, etc
|
||||||
let g:colorizer_auto_color = 0
|
let g:colorizer_auto_color = 0
|
||||||
""let g:colorizer_skip_comments = 1
|
""let g:colorizer_skip_comments = 1
|
||||||
""let g:colorizer_auto_filetype ='css,html,vim'
|
let g:colorizer_auto_filetype ='css,html,qml'
|
||||||
nnoremap <C-c> :ColorToggle<CR>
|
nnoremap <C-c> :ColorToggle<CR>
|
||||||
|
|
||||||
" Symbols important to vim / terminal layouts
|
" Symbols important to vim / terminal layouts
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ FROM ubuntu:latest
|
|||||||
COPY . /dot
|
COPY . /dot
|
||||||
ENV TERM=xterm-256color
|
ENV TERM=xterm-256color
|
||||||
# Install additional packages we need
|
# Install additional packages we need
|
||||||
RUN apt update -y && apt upgrade -y
|
RUN bash -c '. /dot/.bash_aliases && apt update -y && apt install -y $DOT_PACKAGES fontconfig'
|
||||||
RUN apt install -y git stow vim tmux ranger clang wget curl golang-go
|
RUN apt upgrade -y
|
||||||
RUN go install github.com/arl/gitmux@latest
|
RUN go install github.com/arl/gitmux@latest
|
||||||
# Update submodules for plugins
|
# Update submodules for plugins
|
||||||
RUN cd /dot && git submodule update --init && cp .gitmux.conf.docker .gitmux.conf
|
RUN cd /dot && git submodule update --init && cp .gitmux.conf.docker .gitmux.conf
|
||||||
|
|||||||
23
setup.sh
23
setup.sh
@@ -1,23 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
# Use alias for installing packages so we don't maintain several dependency lists.
|
||||||
sudo apt update
|
. .bash_aliases
|
||||||
|
,init
|
||||||
sudo apt install -y \
|
|
||||||
git \
|
|
||||||
stow \
|
|
||||||
vim \
|
|
||||||
vim-gtk3 \
|
|
||||||
xsel \
|
|
||||||
xclip \
|
|
||||||
tmux \
|
|
||||||
ranger \
|
|
||||||
clang \
|
|
||||||
yakuake \
|
|
||||||
wget \
|
|
||||||
curl \
|
|
||||||
golang-go
|
|
||||||
|
|
||||||
go install github.com/arl/gitmux@latest
|
go install github.com/arl/gitmux@latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user