aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-29 00:06:11 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-29 00:06:11 +0100
commit2d9e9f6dbc3bd820d314f5b8b0742ecfb512de7a (patch)
tree418523f6938d7407674e4f2e43798ce0520c649f
parentcf6bd83b9bc3f739c755516706d6702dc2567550 (diff)
downloaddotfiles-2d9e9f6dbc3bd820d314f5b8b0742ecfb512de7a.tar.gz
dotfiles-2d9e9f6dbc3bd820d314f5b8b0742ecfb512de7a.tar.bz2
dotfiles-2d9e9f6dbc3bd820d314f5b8b0742ecfb512de7a.zip
Added newsboat max-items, vim ejs syntax
-rw-r--r--.bashrc3
-rw-r--r--.newsboat/config2
-rw-r--r--.pluggins.vim3
-rw-r--r--.vimrc10
-rw-r--r--.zsh_aliases11
-rw-r--r--.zshrc5
6 files changed, 27 insertions, 7 deletions
diff --git a/.bashrc b/.bashrc
index 1cdb55a..bc5b9ab 100644
--- a/.bashrc
+++ b/.bashrc
@@ -28,3 +28,6 @@ export XDG_DATA_HOME="$HOME/.data/"
# vim key bindings
set -o vi
+
+# Added by c_formatter_42
+export PATH="$PATH:/home/charles/git/c_formatter_42"
diff --git a/.newsboat/config b/.newsboat/config
index 1af63b7..39f7bfe 100644
--- a/.newsboat/config
+++ b/.newsboat/config
@@ -15,3 +15,5 @@ color listfocus black cyan
color listfocus_unread black cyan
color info default black
color article default default
+
+max-items 100
diff --git a/.pluggins.vim b/.pluggins.vim
index 0db0a3b..ed675c5 100644
--- a/.pluggins.vim
+++ b/.pluggins.vim
@@ -20,6 +20,7 @@ call plug#begin()
Plug 'tikhomirov/vim-glsl' " glsl
Plug 'cespare/vim-toml' " toml
Plug 'ziglang/zig.vim' " zig
+ Plug 'nikvdp/ejs-syntax' " ejs
" s19 at home
Plug 'HappyTramp/vim-42header' " 42 header
@@ -35,4 +36,6 @@ call plug#begin()
" Plug 'jez/vim-superman' " man pages in vim (too slow)
" Plug 'vim-scripts/rfc-syntax' " rfc
" Plug 'tacahiroy/ctrlp-funky' " extension to search function
+ Plug '/home/charles/git/c_formatter_42.vim'
+ Plug 'cacharle/doxy42.vim'
call plug#end()
diff --git a/.vimrc b/.vimrc
index fc58ac5..804a4f7 100644
--- a/.vimrc
+++ b/.vimrc
@@ -190,9 +190,9 @@ autocmd Filetype cpp setlocal comments=s:/**,m:**,e:*/,s:/*,m:**,e:*/
" Put Coplien Form boilerplate class
function PutCoplienFormFunc(name)
let l:default_constructor = a:name . "();\n"
- let l:copy_constructor = a:name . "(const " . a:name . "& other);\n"
- let l:copy_operator = a:name . "& operator=(const " . a:name . "& other);\n"
- let l:destructor = "~" . a:name . "();\n"
+ let l:copy_constructor = a:name . "(const " . a:name . "& other);\n"
+ let l:copy_operator = a:name . "& operator=(const " . a:name . "& other);\n"
+ let l:destructor = "~" . a:name . "();\n"
execute "normal iclass " . a:name . "\n{\npublic:\n" . l:default_constructor . l:copy_constructor . l:copy_operator . l:destructor . "\nprivate:\n};\n"
execute "normal <2{"
@@ -249,7 +249,7 @@ autocmd FileType lisp set shiftwidth=2
" ctrlp {{{
" directory to ignore when searching in file tree
-set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/*
+set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/*,*.pyc
" ctrlp ignore all stuff in the .gitignore
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
let g:ctrlp_working_path_mode = 'rw'
@@ -276,3 +276,5 @@ let g:ctrlp_mruf_case_sensitive = 0
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
" }}}
+
+let g:c_formatter_42_format_on_save=0
diff --git a/.zsh_aliases b/.zsh_aliases
index 8535ce5..f9b32d0 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -26,7 +26,7 @@ alias lla="ls -alh"
alias lss="ls -Ssh"
# tree
-alias tree='tree -FC'
+alias tree='tree -FCA'
alias t='tree'
alias ta='tree -a'
alias t1='tree -L 1'
@@ -74,6 +74,11 @@ gpa() {
[ -z "$1" ] && branch=master
git remote | xargs -I{} git push {} "$branch"
}
+gpaf() {
+ branch="$1"
+ [ -z "$1" ] && branch=master
+ git remote | xargs -I{} git push -f {} "$branch"
+}
# lpass (lastpass-cli)
alias lpassp='lpass show --password --clip' # put password in clipboard
@@ -123,8 +128,8 @@ wificonnect() {
# alias mutt='neomutt'
alias ytdl='youtube-dl --output "%(title)s.%(ext)s"'
-alias ytdlp='youtube-dl -i --output "%(playlist_index)s-%(title)s.%(ext)s"'
-alias ytdla='youtube-dl -i -x -f bestaudio/best --output "%(playlist_index)s-%(title)s.%(ext)s"'
+alias ytdlp='youtube-dl --audio-format mp3 -i --output "%(playlist_index)s-%(title)s.%(ext)s"'
+alias ytdla='youtube-dl --audio-format mp3 -i -x -f bestaudio/best --output "%(playlist_index)s-%(title)s.%(ext)s"'
alias qmvdest='qmv --format=do'
diff --git a/.zshrc b/.zshrc
index f04acbe..5ac0ce1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -110,3 +110,8 @@ export GPG_TTY=$(tty) # fixing gpg fatal error about tty
export MINISHELL_TEST_BONUS=yes
export MINISHELL_TEST_PAGER=vim
export MINISHELL_TEST_FLAGS=-DMINISHELL_TEST
+
+# Added by c_formatter_42
+export PATH="$PATH:/home/charles/git/c_formatter_42"
+
+export MINIKUBE_IN_STYLE=false