Go to file
Lucas Cimon 8bb3af82af
WIP
2023-10-26 16:05:00 +02:00
.atom Adding md2html NodeJS script 2017-02-08 00:06:27 +01:00
bin WIP 2022-12-13 22:25:56 +01:00
languages WIP 2023-10-26 16:05:00 +02:00
misc WIP 2023-09-20 14:04:15 +02:00
npp WIP 2021-05-04 11:19:19 +02:00
.SciTEUser.properties WIP 2021-04-14 15:57:54 +02:00
.agignore WIP 2020-09-29 17:20:38 +02:00
.bash_colors Adding "Author" to rc files + renaming bashrc-windows into .bashrc_8_windows + GitHub API examples 2015-09-20 11:50:38 +02:00
.bash_profile Fixing perms 2017-04-20 10:18:11 +02:00
.bashrc WIP 2021-04-14 15:56:15 +02:00
.bashrc_0_term_multiplex.sh Update .bashrc_0_term_multiplex.sh 2019-12-24 11:57:39 +01:00
.bashrc_1_prompt.sh WIP 2023-09-20 14:04:15 +02:00
.bashrc_2_fcts_aliases_exports.sh WIP 2023-10-26 16:05:00 +02:00
.bashrc_3_ssh.sh Transmission & nginx notes 2016-09-10 10:32:16 +02:00
.bashrc_4_cp_mv_helpers.sh Renaming .bashrc_ fragments with an extension 2016-02-10 09:54:02 +01:00
.bashrc_8_cygwin.sh WIP 2022-12-13 22:25:56 +01:00
.bashrc_8_mac.sh Renaming .bashrc_ fragments with an extension 2016-02-10 09:54:02 +01:00
.bashrc_8_wsl.sh WIP 2023-06-01 09:06:07 +02:00
.colordiffrc WIP 2022-08-16 10:14:48 +02:00
.editorconfig WIP 2022-08-16 10:14:48 +02:00
.gemrc Removing unused .rc 2016-04-15 15:39:09 +02:00
.gitconfig WIP 2023-07-05 10:32:37 +02:00
.inputrc Various tips & tricks 2018-03-12 12:51:27 +01:00
.irbrc Adding .irbrc + ruby.rb + urlwatch_hooks.py + various Software Engineering notes 2015-02-23 12:57:01 +01:00
.lighttable.user.behaviors Adding "Author" to rc files + renaming bashrc-windows into .bashrc_8_windows + GitHub API examples 2015-09-20 11:50:38 +02:00
.lighttable.user.keymap Adding "Author" to rc files + renaming bashrc-windows into .bashrc_8_windows + GitHub API examples 2015-09-20 11:50:38 +02:00
.minttyrc WIP 2021-12-23 13:18:29 +01:00
.minttyrc.solarized.light WIP 2017-09-19 01:04:27 +02:00
.pre-commit-config.yaml Init languages/python/projecteuler/ 2019-10-23 03:14:39 +02:00
.pythonrc WIP 2020-12-12 10:49:43 +01:00
.screenrc Adding "Author" to rc files + renaming bashrc-windows into .bashrc_8_windows + GitHub API examples 2015-09-20 11:50:38 +02:00
.tmux.conf WIP 2022-08-10 10:02:23 +02:00
.vimrc Tips & tricks 2018-03-14 20:13:03 +01:00
README.md WIP 2023-04-18 15:11:23 +02:00
UnixUsefulCmds.sh WIP 2023-09-20 14:04:15 +02:00
firefox-addon-clippings.json WIP 2023-09-20 14:04:15 +02:00
vscode-settings.json WIP 2023-09-12 10:09:57 +02:00

README.md

Linux configuration files

Compatible with Ubuntu, Red Hat, OSX and Cygwin.

Code snippets hosted with GitHub Pages

Installation

git clone https://github.com/Lucas-C/dotfiles_and_notes.git
BASHRC_DIR=$PWD/dotfiles_and_notes
cd $HOME
for f in .colordiffrc .gemrc .gitconfig .inputrc .irbrc .minttyrc .pythonrc .screenrc .tmux.conf .vimrc; do [ -e $f ] && echo "Backing up $f" && mv $f{,.bak}; ln -s $BASHRC_DIR/$f; done
echo "source $BASHRC_DIR/.bashrc" >> .bashrc

Any .bashrc_* file in $BASHRC_DIR will be sourced.

Optionally you may need to add the following in ~/.profile (and maybe create this file), but beware that this once broke the session start step and got me stuck on the login screen with a CentOS VM:

exec /bin/bash

To use screen, create an empty ~/.use_screen file. Similarly, you can create ~/.use_tmux.

The .zshrc file is here to invoke bash even if zsh is the default shell.

Finally, the .bashrc_* files rely on the existence of /c, /d, etc. As admin, execute the following to create those symlinks:

cd /
ln -s /cygdrive/c
ln -s /cygdrive/d
ln -s /cygdrive/e

cf. misc/installCygwin.sh

Enabling pre-commit hooks

Install Yelp pre-commit hooks and then :

cd $BASHRC_DIR
pre-commit install

Defining git user identity

Keep it separate from your git configuration by putting it in a file named .gitconfig_user, in $BASHRC_DIR:

[user]
    name = ...
    email = ...

If such file exists, it will be sourced from the main .gitconfig.

VScode settings

As admin:

cd C:\Users\...\AppData\Roaming\Code\User
mklink settings.json C:\...\dotfiles_and_notes\vscode-settings.json

Gimp custom shortcuts install

cp gimp-menurc $APPDATA/GIMP/2.10/menurc

Project Euler

I love to work as a pair to solve algorithmic/maths problems :)

So if you know me, do not hesitate to suggest we work on one of those problems together!

I used to store my solutions to those problems here, but following the Project Euler policy, I moved them to a private Gitlab repository in order for them not to be public.