merge: work

This commit is contained in:
aduhayon 2022-08-08 12:06:05 +02:00
commit 17c96f5ffa
6 changed files with 64 additions and 13 deletions

View File

@ -15,7 +15,6 @@ set foldmethod=indent
set nofoldenable set nofoldenable
set foldlevel=99 set foldlevel=99
set grepprg=grep\ -rn\ $* set grepprg=grep\ -rn\ $*
set listchars+=lead:⋅
au BufWrite * :%s/\s\+$//e au BufWrite * :%s/\s\+$//e
@ -23,15 +22,19 @@ au BufWrite * :%s/\s\+$//e
so ~/.config/nvim/epitech_header.vim so ~/.config/nvim/epitech_header.vim
packadd! nvim-treesitter packadd! nvim-treesitter
lua require'nvim-treesitter.configs'.setup{highlight = {enable = true}} lua require'nvim-treesitter.configs'.setup {highlight = {enable = true}}
packadd! black packadd! black
packadd! nvim-lspconfig
lua require'lspconfig'
packadd! indent-blankline packadd! indent-blankline
lua require'indent_blankline'.setup{space_char_blankline = " ", show_current_context = true, show_current_context_start = true} lua << EOF
require'indent_blankline'.setup {
show_current_context = true,
show_current_context_start = true,
}
EOF
packadd! nvim-lspconfig
" keybindings " keybindings
nnoremap <C-c><C-h> :Header<CR> nnoremap <C-c><C-h> :Header<CR>

View File

@ -0,0 +1,33 @@
# docker
alias dk='docker'
alias dkb='docker build .'
alias dkc='docker create'
alias dkex='docker exec -it'
alias dki='docker image'
alias dkic='docker image create'
alias dkils='docker image ls'
alias dkirm='docker image rm'
alias dkl='docker pull'
alias dklo='docker logs -f'
alias dkp='docker push'
alias dkps='docker ps'
alias dkpsa='docker ps -a'
alias dkrm='docker rm'
alias dkt='docker tag'
alias dkv='docker volume'
alias dkvc='docker volume create'
alias dkvls='docker volume ls'
alias dkvrm='docker volume rm'
function dkpurge() {
PS="$(docker ps -aq)"
echo "$PS" | xargs docker stop
echo "$PS" | xargs docker rm
docker image prune -f
}
# docker-compose
alias dc='docker-compose'
alias dcd='docker-compose down'
alias dcup='docker-compose up -d --build'

View File

@ -9,3 +9,19 @@ alias minecraft='DRI_PRIME=1 minecraft-launcher'
alias umnt='sudo umount /mnt -R' alias umnt='sudo umount /mnt -R'
alias vi="$EDITOR" alias vi="$EDITOR"
alias tmp="cd $(mktemp -d)" alias tmp="cd $(mktemp -d)"
function watch() {
# alias alias_cmd='cmd'
cmd="$(alias "${1}")"
if [ -n "${cmd}" ]; then
# remove everything before and including the first =
cmd="${cmd#*=}"
# remove first and last char in this case, quotes
cmd="${cmd:1:-1}"
else
cmd="${1}"
fi
env watch "${cmd}" "${@:2}"
}

View File

@ -74,7 +74,7 @@ CASE_SENSITIVE="true"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=(git) plugins=(git vi-mode)
. $ZSH/oh-my-zsh.sh . $ZSH/oh-my-zsh.sh
@ -99,7 +99,6 @@ plugins=(git)
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || . ~/.config/zsh/.p10k.zsh [[ ! -f ~/.config/zsh/.p10k.zsh ]] || . ~/.config/zsh/.p10k.zsh
eval "$(pyenv init -)" eval "$(pyenv init -)"
pyenv shell 3.10.5
. "$ZDOTDIR"/.zsh_aliases . "$ZDOTDIR"/.zsh_aliases
. "$ZDOTDIR"/.kubectl_aliases . "$ZDOTDIR"/.kubectl_aliases
. "$ZDOTDIR"/.docker_aliases . "$ZDOTDIR"/.docker_aliases

6
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule ".config/nvim/pack/plugins/opt/indent-blankline"]
path = .config/nvim/pack/plugins/opt/indent-blankline
url = https://github.com/lukas-reineke/indent-blankline.nvim.git
[submodule ".config/nvim/pack/plugins/opt/nvim-lspconfig"] [submodule ".config/nvim/pack/plugins/opt/nvim-lspconfig"]
path = .config/nvim/pack/plugins/opt/nvim-lspconfig path = .config/nvim/pack/plugins/opt/nvim-lspconfig
url = https://github.com/neovim/nvim-lspconfig url = https://github.com/neovim/nvim-lspconfig
@ -10,6 +13,3 @@
[submodule ".pyenv"] [submodule ".pyenv"]
path = .pyenv path = .pyenv
url = https://github.com/pyenv/pyenv.git url = https://github.com/pyenv/pyenv.git
[submodule ".config/nvim/pack/plugins/opt/indent-blankline"]
path = .config/nvim/pack/plugins/opt/indent-blankline
url = https://github.com/lukas-reineke/indent-blankline.nvim.git

View File

@ -19,7 +19,7 @@ esac
[ "$NEW" -lt 0 ] && NEW=0 [ "$NEW" -lt 0 ] && NEW=0
[ "$NEW" -gt 100 ] && NEW=100 [ "$NEW" -gt 100 ] && NEW=100
pactl set-sink-volume 0 "$NEW%" pactl set-sink-volume "${SINK}" "$NEW"%
pactl set-sink-mute 0 0 pactl set-sink-mute "${SINK}" 0
echo "$NEW" echo "$NEW"