Compare commits

...

4 Commits

Author SHA1 Message Date
histausse 26adf51ecb alacritty 9 months ago
histausse 26659ee506 vim 9 months ago
histausse 2ce86af7e8 kmonad 9 months ago
histausse eb0c56434a bash stuff 9 months ago

@ -1,3 +1,6 @@
include "%L"
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
# GREEK CAPITAL LETTERS
<Multi_key> <G> <A> : "Α" U0391 # GREEK CAPITAL LETTER ALPHA
<Multi_key> <G> <B> : "Β" U0392 # GREEK CAPITAL LETTER BETA

@ -8,11 +8,9 @@
# alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
### ARCHIVE EXTRATION
@ -74,9 +72,23 @@ alias status='git status'
alias rebase='git rebase'
alias chechkout='git checkout'
# ssh
alias hindley='ssh hindley.adh.auro.re'
alias proxy_hindley='ssh -D 8080 hindley.adh.auro.re'
export EDITOR='vim'
alias config='/usr/bin/git --git-dir=/home/me/.cfg/ --work-tree=/home/me'
. "$HOME/.cargo/env"
# Pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
alias cookiecutter='/home/me/bin/cookiecutter_venv/bin/cookiecutter'
source "$HOME/sources/bash_prompt"
export PATH="$HOME/bin:$PATH"
alias tmp='cd `mktemp -d`'
alias tvenv='TMP_ENV="$(mktemp -d)" && python -m venv "$TMP_ENV" && source "$TMP_ENV/bin/activate"'
alias scrap='wget -c -e robots=off -E -p -r -U "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" -np --convert-links --no-clobber --random-wait'
alias pysrv='python -m http.server -b 127.0.0.1 -d '

@ -2,13 +2,13 @@ env:
TERM: "xterm-256color"
shell:
program: /usr/bin/xonsh
# program: /usr/bin/bash
# program: /usr/bin/xonsh
program: /usr/bin/bash
# Font configuration (changes require restart)
font:
# The size to use.
size: 8
size: 12
normal:
family: Comic Mono
style: Regular
@ -24,34 +24,3 @@ font:
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }
window.opacity: 0.85
# Colors (Tomorrow Night Bright)
colors:
# Default colors
primary:
background: '0x000000'
foreground: '0xeaeaea'
# Normal colors
normal:
black: '0x000000'
red: '0xd54e53'
green: '0xb9ca4a'
yellow: '0xe6c547'
blue: '0x7aa6da'
magenta: '0xc397d8'
cyan: '0x70c0ba'
white: '0x424242'
# Bright colors
bright:
black: '0x666666'
red: '0xff3334'
green: '0x9ec400'
yellow: '0xe7c547'
blue: '0x7aa6da'
magenta: '0xb77ee0'
cyan: '0x54ced6'
white: '0x2a2a2a'

@ -7,7 +7,7 @@ shell:
# Font configuration (changes require restart)
font:
# The size to use.
size: 8
size: 12
normal:
family: Comic Mono
style: Regular

@ -1,6 +1,7 @@
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "KMonad output" "/sbin/sleep 5 && /sbin/setxkbmap -option compose:paus")
;; KEYBOARD is replaced by the file of the keyboard, see $HOME/.config/systemd/user/kmonad@.service
input (device-file "KEYBOARD")
output (uinput-sink "KMonad output")
fallthrough true
allow-cmd false
)
@ -19,20 +20,24 @@
spc (tap-hold 200 spc (layer-toggle space))
grk (layer-next greek)
Grk (layer-toggle Greek)
vtb (tap-hold 400 tab (tap-macro-release esc i))
æ #(pause q e)
œ #(pause o e)
nla LALT_KEY
)
(deflayer base
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@vtb _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@sl _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ @spc _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ @nla @spc _ _ _ _ _ _ _ _ _
)
(deflayer space
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ del _ _ _ _ _ _ _
esc _ _ _ _ _ _ _ . _ _ home end _ _ _ _ _ _ _ _
_ _ _ _ _ _ left down up rght _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@ -58,6 +63,7 @@
_ _ _ _ _ _ _ _ _ _ _ _ _
)
;; note: the pause key is the compose key
(defalias
α #(pause g q)
β #(pause g b)

@ -1,13 +1,65 @@
set tabstop=4
set softtabstop=0 expandtab
set autoindent
syntax enable
filetype plugin indent on
filetype plugin on
syntax on
set encoding=utf-8
set encoding=utf8
packloadall
" secure vim to use secret
set noswapfile
set nobackup
set nowritebackup
set viminfo=
" colorscheme desert
" colorscheme evening
" colorscheme habamax
colorscheme slate
" Fix the parenthesis highlight
hi MatchParen cterm=underline ctermbg=none ctermfg=yellow
" Autocorect on crt+L
" setlocal spell
set spelllang=fr,en_gb
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" generate ALE help
silent! helptags ALL
" Usefull for latex eq
set conceallevel=1
" Snippets
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsSnippetDirectories=["mysnippets"]
" RUST
" Autoformat rust on save
let g:rustfmt_autosave = 1
" Enable all features when checking (conflict?)
let rust_cargo_check_all_features = 1
" PYTHON
augroup black_on_save
autocmd!
autocmd BufWritePre *.py Black
augroup end
au BufNewFile,BufRead *.py
\ set expandtab |
\ set autoindent |
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4
" Latex
autocmd FileType tex setlocal spell
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0
let g:tex_conceal='abdmg'
" Markdown
autocmd FileType markdown setlocal spell
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_math = 1

@ -0,0 +1,24 @@
parse_git_branch() {
if [ $(git status --porcelain 2> /dev/null | wc -l) != "0" ]; then
color=$'\001\e[31m\002'
elif [ $(git rev-list HEAD@{upstream}..HEAD 2> /dev/null | wc -l) != "0" ]; then
color=$'\001\e[33m\002'
else
color=$'\001\e[32m\002'
fi
reset=$'\001\e[0m\002'
git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/(${color}\1${reset}) /"
}
green=$(tput setaf 2)
reset=$(tput sgr0)
export PROMPT_DIRTRIM=2 # Trimming path to 2 directories
export PROMPT_PATH="[\[$green\]\w\[$reset\]] "
alias fullpath='export PROMPT_DIRTRIM=0; export PROMPT_PATH="[\[$green\]\w\[$reset\]] "; re_export_ps1'
alias partialpath='export PROMPT_DIRTRIM=2; export PROMPT_PATH="[\[$green\]\w\[$reset\]] "; re_export_ps1'
alias lastpath='export PROMPT_PATH="[\[$green\]\W\[$reset\]] "; re_export_ps1'
alias nopath='export PROMPT_PATH=; re_export_ps1'
re_export_ps1() {
export PS1="$PROMPT_PATH\$(parse_git_branch)\$ "
}
re_export_ps1
Loading…
Cancel
Save