127 Commits
wip ... master

Author SHA1 Message Date
8322ef1997 Weird LFS bug 2025-11-06 18:59:02 +01:00
96416217ba [emacs] Clean lsp-inline-comment-mode integration
Cleanly integrate it with company and other.
2025-10-30 22:24:56 +01:00
f16574af53 Adds completion for some custom tools 2025-10-30 09:56:15 +01:00
0daf243692 Adds completion for some utilities 2025-10-30 08:59:49 +01:00
c6cf796f15 Adds a setting to spawn a new instance.
With stacking in my WM like cosmic, it is almost all I need. Goodbye gnome-terminal.
2025-10-30 00:05:56 +01:00
d1a7c54680 Adds alacritty support 2025-10-30 00:00:22 +01:00
65d7b932d4 Fixes electric indentation 2025-10-29 23:11:46 +01:00
4f7cf6bf36 [emacs] Fixes quelpa-use-package git repo path 2025-10-22 12:03:51 +02:00
62c33db5fa Adds stule for cosmic-terminal.
Not in script.
2025-10-17 21:50:19 +02:00
11bdeaedb3 Uses quelpa instead of straight.
I was getting tired of the message. Also just configure it for github remote.
2025-10-17 21:49:43 +02:00
3afb8761d4 Enables .c <-> .h projectile switch 2025-10-17 19:15:03 +02:00
993fa7eec3 Fixes fish version check 2025-10-17 19:14:45 +02:00
5f80da627b [emacs] add spdx 2025-04-11 13:14:03 +02:00
51a438c12a Updates to emacs 30.1 2025-02-26 11:40:46 +01:00
98d609d561 Updates to emacs 29.4 fresh install 2025-01-23 19:56:39 +01:00
d9d4ff91e3 Formats cmake file only if a project-wide configuration file is found
Otherwise do nothing.
2024-12-18 10:31:23 +01:00
4f4d5a4109 Better completion 2024-12-18 09:55:30 +01:00
a486930b32 Forces a newer version of fish from the PPA 2024-10-23 14:48:22 +02:00
4b6ff16d03 Uses opencl-c-mode instead of opencl-mode 2024-08-14 10:10:58 +02:00
d855e8dc9d Adds string-inflection 2024-08-13 14:49:00 +02:00
a0916297ce Polymode PIO 2024-06-22 08:43:35 +02:00
c0e142ff40 Adds pio-mode support through polymode 2024-04-16 11:33:49 +02:00
c94ff5b11c Corrects whitelisting of arm-none-eabi-(gcc|g++) 2024-04-11 11:53:05 +02:00
0d77b01922 Whitelist driver for arm-none-eabi 2024-04-11 11:43:00 +02:00
b33d4e4545 automatically parallelize C/C++ cmake builds 2024-01-19 10:18:46 +01:00
e6d452cac2 Uses yasnippet-licenses through straight 2023-11-30 16:20:58 +01:00
44f4ee000f [emacs] Updates go-compile-commande 2023-11-20 13:57:17 +01:00
1d0c8b75a3 [emacs] Fixes atu/jupyter-ascending-sync 2023-11-20 13:38:26 +01:00
1b8095559b [emacs] jupyter-ascending integration via code-cells
Do not edit .ipynb files in the browser anymore.
2023-11-06 10:33:56 +01:00
b33cf55170 Improves cmake-before-save-hook
Do not erase wrongly formatted buffer
Keeps the current region
Writes nice message to buffer
2023-10-13 12:08:44 +02:00
0cf9d0d134 Groups snippet after other completion 2023-10-13 11:59:49 +02:00
c944c410c4 Enables projectile switching between C/C++ files 2023-10-05 12:31:59 +02:00
4cbf8c3088 Optimizes vertico 2023-10-04 17:30:55 +02:00
21a1f64a1e Adds consult/embark/vertico in emacs. 2023-10-04 13:38:40 +02:00
7cf57b9ab8 Makes company speaks yasnippet 2023-09-30 13:15:35 +02:00
fa9286e318 Fixes tmux RAM icon with later nerd fonts 2023-09-27 18:31:11 +02:00
2d54623cd9 More 2023 C++ environment
Uses clangd as an LSP.
Uses clang-format to format code.

I may enjoy develop in C++ again.
2023-09-27 15:39:40 +02:00
ecfeaaed06 Fixes emacs setup for svelte 2023-09-19 14:55:03 +02:00
5cc3391ba6 Fixes automatic install of deps 2023-09-14 14:44:35 +02:00
30489a44a4 Makes vterm dependencies explicit in .emacs 2023-09-14 11:56:26 +02:00
80a7dea485 Reindent file
for good or for bad. lets see.
2023-09-13 13:30:29 +02:00
a94cd9b513 WIP 2023-09-13 12:54:21 +02:00
db1d04323f disable whitespace mode in magit 2023-09-12 21:34:58 +02:00
f95b1fc88f Adds binding to toggle between relative and absolute line display. 2023-09-12 21:19:25 +02:00
44028c1d41 Changes the theme 2023-09-12 17:38:08 +02:00
f415670298 Modifies theme 2023-09-12 16:59:33 +02:00
8a9fe89d66 adds support for multiple-cursors 2023-09-12 16:23:43 +02:00
92461037ae Sets subword mode globally
I mostly do not use snakecase.
2023-09-12 16:11:51 +02:00
bf9ac61f6c Improves modeline 2023-09-12 16:08:35 +02:00
bdd5aef0d5 Configures a nice modeline 2023-09-12 09:08:15 +02:00
d885fc5309 Back to use package.el 2023-09-11 13:51:46 +02:00
551be1636d Enables prettier only for typescript 2023-09-08 10:06:00 +02:00
3839afd9d2 fixes prettier.el 2023-08-11 12:48:03 +02:00
435ca5ac6c Makes prettier works with prettier 3. 2023-08-11 09:20:55 +02:00
6807b8ed37 Adds support for postcss in web-mode 2023-08-03 10:18:47 +02:00
1656f25c3f Updates fro svelte integration 2023-07-23 15:25:15 +02:00
45fa891213 Adds subword modes 2023-07-13 18:38:03 +02:00
6b4b3948b7 Colorizes output of compilation 2023-07-13 17:59:56 +02:00
5bbc79033d Switches to treemacs-nerd-icons 2023-06-08 11:44:54 +02:00
3fc5ac912f Adds dockerfile support 2023-06-08 11:40:21 +02:00
53d72312ee Adds vterm to emacs 2023-05-17 14:00:47 +02:00
98f6eb6b40 adds subword-mode on go-mode 2023-05-12 18:00:26 +02:00
7bbfc52d1a Uses an emacs compatible prefix 2023-05-11 18:26:00 +02:00
4ccaa82bc5 Uses .dir-locals to set-up angular project 2023-05-11 18:15:44 +02:00
55da4fb131 Add projectile suppot for angular 2023-05-10 18:27:27 +02:00
be9bb069a2 configures treemacs 2023-05-10 11:23:06 +02:00
b4969ba848 Updates font link 2023-05-10 10:14:02 +02:00
b6ec291ebf Updates angular setup 2023-05-07 13:02:12 +02:00
46163ae259 fixes indent for angular project 2023-05-05 18:23:42 +02:00
3304cbc1dc Renames functions 2023-04-26 14:29:07 +02:00
5020adc224 Fixes update script 2023-04-26 14:25:50 +02:00
8957961441 Updates Ubuntu Font to use 2023-04-20 17:16:32 +02:00
3a120dde3c adds treemacs 2023-04-20 17:16:22 +02:00
0460e55c29 Starts lsp-session on demand per project 2023-04-20 10:49:53 +02:00
9f5552560b Try outs pyright 2022-12-08 15:20:09 +01:00
c4d3583fc2 Cleans up variables 2022-12-08 10:36:14 +01:00
4b82506a1a Fixes verbose hinting of script location 2022-12-08 10:17:14 +01:00
c9dbf5452e Fixes back for linux. macOS won't be supported 2022-12-08 10:15:11 +01:00
b541768feb Adds supports for mambaforge 2022-11-30 13:18:38 +01:00
0b8d8a222b Merge branch 'master' of git.tuleu.science:atuleu/home 2022-11-30 13:18:18 +01:00
93fcbe8c45 Fixes venv file 2022-11-30 13:18:05 +01:00
25091c0ddc Merge branch 'master' of git.tuleu.science:atuleu/home 2022-11-30 12:27:24 +01:00
7c3e42202c Fixes for macOS 2022-11-30 12:27:20 +01:00
6284a07ce6 Fixes py-isort hooks 2022-11-28 17:48:25 +01:00
f3046216a2 Updates prompt 2022-11-19 11:33:46 +01:00
a4368379fe Fixes ubuntu mono installation 2022-11-10 14:11:29 +01:00
0a156bd711 Updates one command-liner
Apparently PAM does not like nested scripts.
2022-11-04 10:43:08 +01:00
74f1e8d52e Adds a README 2022-11-04 10:27:39 +01:00
efeb60a362 Adds a symlink to update and make it curlable installable 2022-11-04 10:25:38 +01:00
d50595c1ea Renames install update.sh 2022-11-04 10:11:57 +01:00
2a2bc51953 Makes install script more beautiful and modular 2022-11-04 10:10:55 +01:00
043dcb2cf5 Sets default branch as main 2022-11-03 09:02:52 +01:00
8547b93747 Switches to pylsp
Maybe it heavier, but at least its working. However pyvenv was a PITA.
2022-10-28 17:50:17 +02:00
76b9a837b3 repairs golang mode 2022-10-28 17:26:45 +02:00
cee4734645 Frist attempt to not use elpy 2022-10-28 16:46:30 +02:00
f0aa182818 Adds yaml-mode in .emacs 2022-10-19 09:18:23 +02:00
51554bb912 Adds .clangd to the list of ignored files 2022-10-19 09:17:51 +02:00
40a2a09473 Updates .gitignore 2022-10-14 10:38:23 +02:00
a94c3a60d7 Updates oh-my-fish packages on install 2022-10-05 08:43:25 +02:00
fae687fe31 Adds supportd for lsp-angular 2022-10-05 08:01:25 +02:00
4bc4e435c7 Uses projectile-compile-command instead of legacy <f9> 2022-10-05 08:00:36 +02:00
b3ab5ccdc6 Sets mergetool 2022-10-05 08:00:07 +02:00
3ac6f09fa7 Adds NVM 2022-10-04 10:23:46 +02:00
b3fa91d56a Disables warnings 2022-10-03 16:10:45 +02:00
ead3b5cfb7 Merge remote-tracking branch 'origin/master' 2022-09-30 15:38:19 +02:00
878a5224a3 Attempts to add language tool supports 2022-09-30 15:37:39 +02:00
bd4f9d080c no sideline diagnostics 2022-09-30 15:36:39 +02:00
e7010d9d06 emacs lsp-mode enhancements 2022-09-29 16:54:57 +02:00
f993a9004b Adds which-key
For full lsp unlimited POOOOOWWWAAAAAA
2022-09-29 16:32:38 +02:00
84e40828a5 Updates for graphic emacs 2022-09-28 09:07:04 +02:00
8e283022e6 Makes it better 2022-09-26 17:53:14 +02:00
879c9e64e5 Updates emacs with lsp and other nice features 2022-09-23 12:59:17 +02:00
9fcb8bffa5 Merge remote-tracking branch 'origin/master' 2022-09-22 11:47:00 +02:00
f5d5a7e404 Updates .emacs 2022-09-22 11:43:48 +02:00
241435e577 Fixes Install script for Mono 2022-09-22 11:43:28 +02:00
c281072d47 Adds cuda support 2022-06-29 14:54:11 +02:00
ecd809ddb5 Updates 2022-06-29 10:23:13 +02:00
77b45743be Updated install script 2022-06-14 22:00:50 +02:00
03bbdbc9d1 Updates dconf only if dconf is installed 2022-01-28 17:05:49 +01:00
c3db537236 Adds local executable to path 2022-01-28 17:05:02 +01:00
bad42e3181 Fixes font name in gnome profile 2022-01-21 11:56:10 +01:00
2556fcc74f allways fixing tmux config 2022-01-21 11:47:50 +01:00
645ffb24ca Fixes gnome settings 2022-01-20 12:00:28 +01:00
26d4a706ce Fishes prompt 2022-01-20 11:26:37 +01:00
0e2bc8689a Updates colors theme to be less harmfull 2022-01-20 11:22:18 +01:00
3f6e8f3fbf fixup! Makes a color theme that does not make the eyes bleed 2022-01-19 21:41:13 +01:00
3172859a3d Avoid credential socket in magit 2022-01-19 21:15:28 +01:00
18 changed files with 1527 additions and 456 deletions

58
.config/alacritty.toml Normal file
View File

@@ -0,0 +1,58 @@
[font]
size = 12.0
[font.bold]
family = "UbuntuMono Nerd Font Mono"
style = "Bold"
[font.bold_italic]
family = "UbuntuMono Nerd Font Mono"
style = "Bold Italic"
[font.normal]
family = "UbuntuMono Nerd Font Mono"
style = "Regular"
[font.italic]
family = "UbuntuMono Nerd Font Mono"
style = "Italic"
[colors.primary]
foreground = "#C5C8C6"
background = "#282A2E"
[colors.cursor]
text = '#1d1f21'
cursor='#F6F6F6'
[colors.normal]
black= "#282A2E"
red= "#CC6666"
green= "#B5BD68"
yellow= "#F0C674"
blue= "#81A2BE"
magenta= "#B294BB"
cyan= "#8ABEB7"
white= "#969896"
[colors.bright]
black= "#373B41"
red= "#FF9999"
green= "#E5ED98"
yellow= "#FFF6A4"
blue= "#B1D2EE"
magenta= "#E2C4EB"
cyan= "#BAEEE7"
white= "#C5C8C6"
[keyboard]
bindings = [
{ key = "T", mods = "Control|Shift", action = "SpawnNewInstance" }
]
[window]
decorations = "Full"
# Local Variables:
# vc-follow-symlinks: t
# End:

View File

@@ -0,0 +1 @@
complete -c arkedump -f -a "(GO_FLAGS_COMPLETION=1 arkedump (string split ' ' (commandline -cp)))"

View File

@@ -0,0 +1 @@
complete -c arkesend -f -a "(GO_FLAGS_COMPLETION=1 arkesend (string split ' ' (commandline -cp)))"

View File

@@ -0,0 +1 @@
complete -c leto-cli -f -a "(GO_FLAGS_COMPLETION=1 leto-cli (string split ' ' (commandline -cp)))"

View File

@@ -0,0 +1 @@
complete -c zeus-cli -f -a "(GO_FLAGS_COMPLETION=1 zeus-cli (string split ' ' (commandline -cp)))"

View File

@@ -12,13 +12,18 @@ end
set fish_greeting ""
if test -x $HOME/.local/bin
set PATH $PATH $HOME/.local/bin
end
################################################################################
# exa
################################################################################
if type -q exa
alias ls="exa --git -g"
set -gx EXA_COLORS "da=36:uu=33:gu=33"
set -gx EXA_COLORS "da=35:uu=33:gu=33"
end
################################################################################
@@ -28,6 +33,7 @@ end
alias emacs="emacs -nw"
alias gemacs="/usr/bin/emacs"
set -gx EDITOR "emacs"
set -gx LSP_USE_PLISTS "true"
################################################################################
# Deb maintainer stuff
@@ -58,16 +64,18 @@ export MINICOM="-c on"
################################################################################
# Conda
# Anaconda / Conda / Mambaforge
################################################################################
if test -x $HOME/miniconda3/bin/conda
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval $HOME/miniconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<
set CONDA_PREFIXES mambaforge miniforge3 miniconda3 anaconda3
for prefix in $CONDA_PREFIXES
if test -x $HOME/$prefix/bin/conda
eval $HOME/$prefix/bin/conda "shell.fish" "hook" $argv | source
break
end
end
################################################################################
# direnv
################################################################################
@@ -80,6 +88,22 @@ direnv hook fish | source
starship init fish | source
################################################################################
# CUDA
################################################################################
if test -d /usr/local/cuda
set PATH $PATH /usr/local/cuda/bin
end
################################################################################
# RUST
################################################################################
if test -d $HOME/.cargo/bin
set PATH $PATH $HOME/.cargo/bin
end
################################################################################
# Colortest
################################################################################

View File

@@ -1,14 +1,14 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3100
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:969896
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:c397d8
SETUVAR fish_color_comment:e7c547
SETUVAR fish_color_command:b294bb
SETUVAR fish_color_comment:f0c674
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:c397d8
SETUVAR fish_color_error:d54e53
SETUVAR fish_color_end:b294bb
SETUVAR fish_color_error:cc6666
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
@@ -16,9 +16,9 @@ SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:7aa6da
SETUVAR fish_color_quote:b9ca4a
SETUVAR fish_color_redirection:70c0b1
SETUVAR fish_color_param:81a2be
SETUVAR fish_color_quote:b5bd68
SETUVAR fish_color_redirection:8abeb7
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
@@ -30,3 +30,4 @@ SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr

View File

@@ -3,3 +3,7 @@
email = alexandre.tuleu.2005@polytechnique.org
[credential]
helper = cache
[merge]
tool = meld
[init]
defaultBranch = main

View File

@@ -1,3 +1,7 @@
*~
.dir-locals.el
.envrc
.direnv
cover.out
.projectile
.clangd

View File

@@ -1,2 +1,4 @@
package foreign-env
package nvm
theme bobthefish
theme default

View File

@@ -8,8 +8,8 @@ disabled = true
[character] # The name of the module we are configuring is "character"
success_symbol = "[](#444444)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
error_symbol = "[](red)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
success_symbol = "[](#444444)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
error_symbol = "[](red)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
[username]
style_user="bold green"
@@ -44,12 +44,12 @@ format="[$symbol$version]($style) "
disabled = false
map_symbol = true
style="bg:#444444 red"
format = "[](#444444 bg:red)[$symbol $status ](bg:red)"
format = "[](#444444 bg:red)[$symbol $status ](bg:red)"
[time]
disabled = false
style="bg:#444444 bright-white"
format="[◢](#444444)[$time ]($style)"
format="[$time ]($style)"
time_format = '%a %b %d %R'
[git_branch]
@@ -67,4 +67,8 @@ disabled=false
[git_status]
style="bold red"
format='([\[$all_status$ahead_behind\]]($style) )'
format='([\[$all_status$ahead_behind\]]($style) )'
# Local Variables:
# vc-follow-symlinks: t
# End:

1333
.emacs

File diff suppressed because it is too large Load Diff

View File

@@ -45,31 +45,31 @@ tmux_conf_new_session_prompt=false
# - false (default)
tmux_conf_24b_colour=true
th_color_black="#2A2A2A"
th_color_black_light="#424242"
th_color_red="#E44455"
th_color_red_light="#FF7485"
th_color_orange="#F5864F"
th_color_orange_light="#FFB67F"
th_color_yellow="#F0C15A"
th_color_yellow_light="#FFF18A"
th_color_green="#BAC85B"
th_color_green_light="#EAF88B"
th_color_cyan="#57C1B2"
th_color_cyan_light="#87F1E2"
th_color_blue="#69A9D7"
th_color_blue_light="#99D9FF"
th_color_magenta="#C798D4"
th_color_magenta_light="#F7C8FF"
th_color_black="#282A2E"
th_color_black_light="#373B41"
th_color_red="#CC6666"
th_color_red_light="#FF9999"
th_color_orange="#DE935F"
th_color_orange_light="#FFC38F"
th_color_yellow="#F0C674"
th_color_yellow_light="#FFF6A4"
th_color_green="#B5BD68"
th_color_green_light="#E5ED98"
th_color_cyan="#8ABEB7"
th_color_cyan_light="#BAEEE7"
th_color_blue="#81A2BE"
th_color_blue_light="#B1D2EE"
th_color_magenta="#B294BB"
th_color_magenta_light="#E2C4EB"
th_color_gray="#969896"
th_color_white="#EAEAEA"
th_color_white="#C5C8C6"
# default theme
tmux_conf_theme_colour_1="$th_color_black_light" # dark gray
tmux_conf_theme_colour_2="$th_color_black" # gray
tmux_conf_theme_colour_3="$th_color_gray" # light gray
tmux_conf_theme_colour_4="$th_color_cyan_light"
tmux_conf_theme_colour_4="$th_color_cyan"
#command-line
tmux_conf_theme_colour_5="$th_color_green"
#status left fg
@@ -108,7 +108,7 @@ tmux_conf_theme_focused_pane_bg="$tmux_conf_theme_colour_2"
tmux_conf_theme_pane_border_style=thin
# pane borders colours:
tmux_conf_theme_pane_border="$tmux_conf_theme_colour_2"
tmux_conf_theme_pane_border="$th_color_gray"
tmux_conf_theme_pane_active_border="$tmux_conf_theme_colour_4"
# pane indicator colours (when you hit <prefix> + q)
@@ -162,7 +162,7 @@ tmux_conf_theme_window_status_bg="$tmux_conf_theme_colour_1"
tmux_conf_theme_window_status_attr="none"
tmux_conf_theme_window_status_format="#I #W"
#tmux_conf_theme_window_status_format="#{circled_window_index} #W"
#tmux_conf_theme_window_status_format="#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
tmux_conf_theme_window_status_format="#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}"
# window current status style
# - built-in variables are:
@@ -230,7 +230,7 @@ tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see
# - #{username}
# - #{username_ssh}
tmux_conf_theme_status_left=" ❐ #S "
tmux_conf_theme_status_right=" #{prefix}#{pairing}#{synchronized} ,#{?battery_status,#{battery_status},}#{?battery_vbar, #{battery_vbar},}#{?battery_percentage, #{battery_percentage}, }#{weather}, #{cpu_fg_color} #{cpu_percentage} #{ram_fg_color} #{ram_percentage}#{?cpu_temp, #{cpu_temp_fg_color}#{cpu_temp_icon}#{cpu_temp},} , %R , %d %b |#{root}"
tmux_conf_theme_status_right=" #{prefix}#{pairing}#{synchronized} ,#{?battery_status,#{battery_status},}#{?battery_vbar, #{battery_vbar},}#{?battery_percentage, #{battery_percentage}, } #{weather} #{cpu_fg_color} #{cpu_percentage} #{ram_fg_color}󰍛 #{ram_percentage} #{cpu_temp_fg_color}#{cpu_temp_icon}#{cpu_temp} , %R , %d %b |#{root}"
# status left style
tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8"
@@ -341,11 +341,11 @@ tmux_conf_copy_to_os_clipboard=false
#set -g mode-keys vi
# replace C-b by C-a instead of using both prefixes
# set -gu prefix2
# unbind C-a
# unbind C-b
# set -g prefix C-a
# bind C-a send-prefix
set -gu prefix2
unbind C-a
unbind C-b
set -g prefix C-\\
bind C-\\ send-prefix
# move status line to top
#set -g status-position top
@@ -431,6 +431,10 @@ unbind _
bind | split-window -h
set -g status-right-length 10
# fixes <prefix> + e for non-vi user
unbind e
bind e new-window -n "~/.tmux.conf.local" "\$EDITOR ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\""
# Local Variables:
# vc-follow-symlinks: t

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# Personnal configuration
## Installation
You can install this configuration on a new system using
```bash
curl -sSL https://git.tuleu.science/atuleu/home/raw/branch/master/update.sh | bash && $HOME/.home/update.sh
```
## Keeping it synced
You can then update the configuration with:
```bash
$HOME/.home/update.sh
```
On a GNOME environment you may want to:
```bash
$HOME/.home/update.sh --gnome
```
This will install necessary fonts and makes GNOME terminal actually looks good.

View File

@@ -0,0 +1,15 @@
[:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
background-color='rgb(40,42,46)'
background-transparency-percent=21
bold-color-same-as-fg=true
custom-command='env TERM=xterm-direct /usr/bin/fish'
font='UbuntuMono Nerd Font Mono 11'
foreground-color='rgb(197,200,198)'
login-shell=false
palette=['rgb(40,42,46)', 'rgb(204,102,102)', 'rgb(181,189,104)', 'rgb(240,198,116)', 'rgb(129,162,190)', 'rgb(178,148,187)', 'rgb(138,190,183)', 'rgb(150,152,150)', 'rgb(55,59,65)', 'rgb(255,153,153)', 'rgb(229,237,152)', 'rgb(255,246,164)', 'rgb(177,210,238)', 'rgb(226,196,235)', 'rgb(186,238,231)', 'rgb(197,200,198)']
use-custom-command=true
use-system-font=false
use-theme-colors=false
use-theme-transparency=true
use-transparent-background=false
visible-name='atuleu'

View File

@@ -1,44 +0,0 @@
#!/bin/bash
set -e
files=".config/fish \
.config/git \
.config/omf \
.config/starship \
.local/share/omf \
.emacs \
.tmux.conf.local"
function this_script_root_dir() {
dirname $(realpath ${BASH_SOURCE[0]})
}
function run() {
echo "$@"
$@
}
function install_home() {
for f in $files
do
run rm -Rf $HOME/$f
dir=$(dirname $f)
if [ ! "$dir" = "." ]
then
run mkdir -p $HOME/$dir
fi
run ln -sf $(this_script_root_dir)/$f $HOME/$f
done
run ln -sf $(this_script_root_dir)/.tmux/.tmux.conf $HOME/.tmux.conf
}
pushd $(this_script_root_dir)
git pull
git submodule init
git submodule update
popd
install_home

View File

@@ -0,0 +1,37 @@
(
name: "Tomorrow Night - Tweeked",
foreground: "#C5C8C6",
background: "#282A2E",
cursor: "#F6F6F6",
dim_foreground: "#282A2E",
normal: (
black: "#282A2E",
red: "#CC6666",
green: "#B5BD68",
yellow: "#F0C674",
blue: "#81A2BE",
magenta: "#B294BB",
cyan: "#8ABEB7",
white: "#969896",
),
bright: (
black: "#373B41",
red: "#FF9999",
green: "#E5ED98",
yellow: "#FFF6A4",
blue: "#B1D2EE",
magenta: "#E2C4EB",
cyan: "#BAEEE7",
white: "#C5C8C6",
),
dim: (
black: "#1f1d21",
red: "#BB5555",
green: "#A4AC57",
yellow: "#DFB563",
blue: "#7091AD",
magenta: "#A183AA",
cyan: "#79ADA6",
white: "#858785",
),
)

333
update.sh Executable file
View File

@@ -0,0 +1,333 @@
#!/bin/bash
set -e
function print_help() {
echo "usage .home/update.sh [-g/--gnome] [-h/--help] [-v/--berbose] [-d/--dry]
Installs and updates shared configuration on a system. Options are:
-h/--help : print this help
--reinstall : force reinstallation
-g/--gnome : system is intended to run in a GNOME environement, and
will setup gnome-terminal accordingly. Do not
activate on headless system.
--font : Installs font for gnome environment (selected if --gnome)
-v/--verbose : prints command before running them
-n/--dry : dry run, do not execute commands. Implies --verbose.
"
}
function exit_error() {
print_help
exit 1
}
GNOME=false
FONT=false
VERBOSE=false
DRY=false
REINSTALL=false
function set_reinstall_on() {
REINSTALL=true
}
function set_gnome_on() {
GNOME=true
FONT=true
}
function set_font_on() {
FONT=true
}
function set_verbose_on() {
VERBOSE=true
}
function set_dry_on() {
DRY=true
VERBOSE=true
}
while getopts "vnhg-:" optchar
do
case "${optchar}" in
-)
case "${OPTARG}" in
reinstall)
set_reinstall_on
;;
gnome)
set_gnome_on
;;
verbose)
set_verbose_on
;;
font)
set_font_on
;;
dry)
set_dry_on
;;
*)
echo "invalid argument --${OPTARG}"
exit_error
;;
esac;;
h)
print_help
exit 0
;;
g)
set_gnome_on
;;
n)
set_dry_on
;;
v)
set_verbose_on
;;
*)
exit_error
;;
esac
done
files=".config/fish \
.config/git \
.config/omf \
.config/starship.toml \
.local/share/omf \
.emacs \
.tmux.conf.local \
.config/alacritty.toml"
function this_script_root_dir() {
dirname $(realpath ${BASH_SOURCE[0]})
}
function run() {
if $VERBOSE
then
echo "[$@]"
fi
if ! $DRY
then
$@
fi
}
function run_git() {
if $VERBOSE
then
echo "[git $@] in $(this_script_root_dir)"
fi
if ! $DRY
then
pushd $(this_script_root_dir) 1>/dev/null
if $VERBOSE
then
git $@
else
git $@ 1>/dev/null
fi
popd 1>/dev/null
fi
}
function load_gnome_terminal_profiles() {
echo "--- Installing GNOME terminal profile"
if which dconf 1>/dev/null
then
run dconf load /org/gnome/terminal/legacy/profiles:/ < $(this_script_root_dir)/gnome-terminal-profiles.dconf
fi
}
function install_fish() {
echo "--- Ensuring fish is current shell"
local fish_good=0
if ! which fish 1>/dev/null
then
fish_good=1
fi
local current_version=$(fish --version | cut -d " " -f 3)
local current_version_test=$(cat <<EOF
${current_version}
3.4.0
EOF
)
if [ $(echo "${current_version_test}" | sort -n | head -1) != "3.4.0" ]
then
echo "Wrong version of fish ${current_version}"
fish_good=1
fi
if [ $fish_good -eq 1 ]
then
echo "+++ Installing fish from PPA"
run sudo add-apt-repository -y ppa:fish-shell/release-3
run sudo apt update
run sudo apt install -y fish
else
echo "+++ Fish is installed"
fi
fish=$(which fish)
current_shell=$(grep $USER /etc/passwd | cut -d ":" -f 7)
if [ $current_shell != $fish ]
then
echo "+++ Changing shell to $fish (you will be prompted for passwd)"
run chsh -s $fish
else
echo "+++ Default shell is $fish"
fi
}
function install_direnv() {
echo "--- Ensuring direnv is installed"
if ! which direnv 1>/dev/null
then
echo "++ Installing direnv"
run sudo apt-get install -y direnv
else
echo "+++ direnv is installed"
fi
}
function install_starship() {
echo "--- Ensuring starship is installed"
if which starship 1>/dev/null
then
echo "+++ Starship is installed"
if ! $REINSTALL
then
return
fi
echo "+++ Reinstalling starship"
fi
echo "+++ Installing starship"
if $VERBOSE
then
echo "[curl -sS https://starship.rs/install.sh | sh -s -- --yes]"
fi
if ! $DRY
then
curl -sS https://starship.rs/install.sh | sh -s -- --yes
fi
}
function install_ubuntu_mono_nerd() {
echo "--- Ensuring Ubuntu Mono Nerd font is present"
if [ ! -e /usr/share/terminfo/x/xterm-direct ]
then
run sudo apt-get install -y ncurses-term
else
echo "+++ xterm-direct is in terminfo database"
fi
if fc-list | grep "UbuntuMono Nerd Font" 1>/dev/null
then
echo "+++ UbuntuMono Nerd font is installed"
if ! $REINSTALL
then
return
fi
echo "+++ Reinstalling UbuntuMono Nerd font"
fi
echo "+++ Fetching UbuntuMono Nerd Font"
run mkdir -p ~/.local/share/fonts
pushd ~/.local/share/fonts
run curl -fL -o UbuntuMonoNerdFontMono-Regular.ttf https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/UbuntuMono/Regular/UbuntuMonoNerdFontMono-Regular.ttf
popd
run fc-cache -f
}
function install_deps() {
install_fish
install_direnv
install_starship
if $FONT
then
install_ubuntu_mono_nerd
fi
}
function install_files() {
echo "--- Ensuring symlinks to git file are present"
for f in $files
do
run rm -Rf $HOME/$f
dir=$(dirname $f)
if [ ! "$dir" = "." ]
then
run mkdir -p $HOME/$dir
fi
run ln -sf $(this_script_root_dir)/$f $HOME/$f
done
run ln -sf $(this_script_root_dir)/.tmux/.tmux.conf $HOME/.tmux.conf
}
function update_oh_my_fish() {
echo "--- Updating Oh My Fish"
FISH=$(which fish)
if $VERBOSE
then
echo "[$FISH -c 'omf install']"
fi
if ! $DRY
then
if $VERBOSE
then
$FISH -c 'omf install'
else
$FISH -c 'omf install' 1>/dev/null
fi
fi
}
function update_home() {
if $VERBOSE
then
echo "--- this_script_root_dir: $(this_script_root_dir)"
fi
update_repos
install_deps
install_files
update_oh_my_fish
if $GNOME
then
load_gnome_terminal_profiles
fi
if ! $DRY
then
echo "--- git.tuleu.science:atuleu/home.git updated and set"
fi
}
function update_repos() {
echo "--- Updating git.tuleu.science:atuleu/home.git"
run_git pull
run_git submodule init
run_git submodule update
}
if [ -z $BASH_SOURCE ] && [ ! -d "$HOME/.home" ]
then
echo "--- cloning git.tuleu.science:atuleu/home.git in $HOME/.home"
pushd $HOME 1>/dev/null
run_git clone https://git.tuleu.science/atuleu/home.git .home
popd 1>/dev/null
else
update_home
fi