mostly sublime, some zshrc

This commit is contained in:
Adrien Luxey 2019-09-27 10:29:26 +02:00
parent 32ba72e8c6
commit f711890dc9
14 changed files with 304 additions and 120 deletions

2
sublime/.jsbeautifyrc Normal file
View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,7 @@
// These settings override both User and Default settings for the C++ syntax
{
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
}

View file

@ -1,121 +1,196 @@
[ [
// Open folder // Open folder
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, {
"keys": ["ctrl+shift+o"],
"command": "prompt_open_folder"
},
// Switch case // Switch case
{ "keys": ["ctrl+u"], "command": "swap_case"}, {
"keys": ["ctrl+u"],
"command": "swap_case"
},
// Change Ctrl+Shift behaviour (Firefox-like) // Change Ctrl+Shift behaviour (Firefox-like)
{ "keys": ["ctrl+tab"], "command": "next_view" }, {
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, "keys": ["ctrl+tab"],
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" }, "command": "next_view"
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" }, },
{
"keys": ["ctrl+shift+tab"],
"command": "prev_view"
},
{
"keys": ["ctrl+pagedown"],
"command": "next_view_in_stack"
},
{
"keys": ["ctrl+pageup"],
"command": "prev_view_in_stack"
},
// Lord, do I hate Ctrl+q ... // Lord, do I hate Ctrl+q ... Deactivated because of Layout
{ "keys": ["ctrl+q"], "command": "unbound"}, //{ "keys": ["ctrl+q"], "command": "unbound"},
// Allow Alt+C to comment: // Allow Alt+C to comment:
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": false } }, {
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": true } }, "keys": ["alt+c"],
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, "command": "toggle_comment",
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, "args":
{
"block": false
}
},
{
"keys": ["alt+c"],
"command": "toggle_comment",
"args":
{
"block": true
}
},
{
"keys": ["ctrl+/"],
"command": "toggle_comment",
"args":
{
"block": false
}
},
{
"keys": ["ctrl+shift+/"],
"command": "toggle_comment",
"args":
{
"block": true
}
},
// View settings // View settings
{ {
"keys": ["ctrl+alt+&"], "keys": ["ctrl+alt+&"],
"command": "set_layout", "command": "set_layout",
"args": "args":
{ {
"cols": [0.0, 1.0], "cols": [0.0, 1.0],
"rows": [0.0, 1.0], "rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]] "cells": [
} [0, 0, 1, 1]
}, ]
{ }
"keys": ["ctrl+alt+é"], },
"command": "set_layout", {
"args": "keys": ["ctrl+alt+é"],
{ "command": "set_layout",
"cols": [0.0, 0.5, 1.0], "args":
"rows": [0.0, 1.0], {
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] "cols": [0.0, 0.5, 1.0],
} "rows": [0.0, 1.0],
}, "cells": [
{ [0, 0, 1, 1],
"keys": ["ctrl+alt+\""], [1, 0, 2, 1]
"command": "set_layout", ]
"args": }
{ },
"cols": [0.0, 0.5, 1.0], {
"rows": [0.0, 0.5, 1.0], "keys": ["ctrl+alt+\""],
"cells": "command": "set_layout",
[ "args":
[0, 0, 1, 1], [1, 0, 2, 1], {
[0, 1, 2, 2] "cols": [0.0, 0.5, 1.0],
] "rows": [0.0, 0.5, 1.0],
// "cols": [0.0, 0.33, 0.66, 1.0], "cells": [
// "rows": [0.0, 1.0], [0, 0, 1, 1],
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] [1, 0, 2, 1],
} [0, 1, 2, 2]
}, ]
{ // "cols": [0.0, 0.33, 0.66, 1.0],
"keys": ["alt+shift+4"], // "rows": [0.0, 1.0],
"command": "set_layout", // "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
"args": }
{ },
"cols": [0.0, 0.25, 0.5, 0.75, 1.0], {
"rows": [0.0, 1.0], "keys": ["alt+shift+4"],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] "command": "set_layout",
} "args":
}, {
{ "cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"keys": ["ctrl+alt+("], "rows": [0.0, 1.0],
"command": "set_layout", "cells": [
"args": [0, 0, 1, 1],
{ [1, 0, 2, 1],
"cols": [0.0, 1.0], [2, 0, 3, 1],
"rows": [0.0, 0.5, 1.0], [3, 0, 4, 1]
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]] ]
} }
}, },
{ {
"keys": ["alt+shift+9"], "keys": ["ctrl+alt+("],
"command": "set_layout", "command": "set_layout",
"args": "args":
{ {
"cols": [0.0, 1.0], "cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0], "rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] "cells": [
} [0, 0, 1, 1],
}, [0, 1, 1, 2]
{ ]
"keys": ["ctrl+alt+'"], }
"command": "set_layout", },
"args": {
{ "keys": ["alt+shift+9"],
"cols": [0.0, 0.5, 1.0], "command": "set_layout",
"rows": [0.0, 0.5, 1.0], "args":
"cells": {
[ "cols": [0.0, 1.0],
[0, 0, 1, 1], [1, 0, 2, 1], "rows": [0.0, 0.33, 0.66, 1.0],
[0, 1, 1, 2], [1, 1, 2, 2] "cells": [
] [0, 0, 1, 1],
} [0, 1, 1, 2],
}, [0, 2, 1, 3]
{ ]
"keys": ["ctrl+alt+o"], }
"command": "project_manager", "args": {"action": "new"} },
}, {
{ "keys": ["ctrl+alt+s"], "command": "toggle_side_bar" }, "keys": ["ctrl+alt+'"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1],
[0, 1, 1, 2],
[1, 1, 2, 2]
]
}
},
{
"keys": ["ctrl+alt+o"],
"command": "project_manager",
"args":
{
"action": "new"
}
},
{
"keys": ["ctrl+alt+s"],
"command": "toggle_side_bar"
},
{
"keys": ["ctrl+alt+h"],
"command": "htmlprettify"
},
// LaTeX compilation set to Ctrl+Enter // LaTeX compilation set to Ctrl+Enter
// Doesn't work... // Doesn't work...
// { // {
// "keys": ["ctrl+enter"], // "keys": ["ctrl+enter"],
// "context": [ // "context": [
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}, // {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
// {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}], // {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}],
// "command": "latextools_build_selector" // "command": "latextools_build_selector"
// }, // },
] ]

View file

@ -0,0 +1 @@
[]

View file

@ -0,0 +1,9 @@
{
/**
* This option dictates which style of docstrings to use, when parsing docstrings
*
* Available Options:
* [PEP0257, docblock, google, numpy, sphinx]
*/
"formatter": "numpy"
}

View file

@ -0,0 +1,7 @@
// These settings override both User and Default settings for the C++ syntax
{
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
}

View file

@ -0,0 +1,3 @@
{
}

View file

@ -0,0 +1,12 @@
{
"foldable_environments": [
"table",
"figure",
"equation",
"section"
],
"zotero": false,
"zotero_user_id": "3421821",
"zotero_user_key": "5d3MQLpPp8ra2irK6tMyBvaJ",
"open_pdf_on_load": false
}

View file

@ -7,16 +7,22 @@
[ [
"All Autocomplete", "All Autocomplete",
"AutoPEP8", "AutoPEP8",
"ayu",
"Compare Side-By-Side", "Compare Side-By-Side",
"Diffy", "Diffy",
"DocBlockr_Python",
"Dockerfile Syntax Highlighting", "Dockerfile Syntax Highlighting",
"ExportHtml", "ExportHtml",
"Git", "Git",
"GitGutter", "GitGutter",
"GoSublime", "GoSublime",
"Hermes",
"HTML-CSS-JS Prettify",
"Javascript Beautify", "Javascript Beautify",
"Language - French - Français", "Language - French - Français",
"LaTeXing",
"LaTeXTools", "LaTeXTools",
"Layout",
"Markdown Extended", "Markdown Extended",
"MarkdownPreview", "MarkdownPreview",
"MultiEditUtils", "MultiEditUtils",
@ -28,6 +34,7 @@
"ProjectManager", "ProjectManager",
"SublimeCodeIntel", "SublimeCodeIntel",
"SublimeLinter", "SublimeLinter",
"SublimeLinter-cppcheck",
"SublimeLinter-pyflakes", "SublimeLinter-pyflakes",
"SublimeREPL", "SublimeREPL",
"SwitchDictionary", "SwitchDictionary",

View file

@ -39,20 +39,57 @@
"anonymization", "anonymization",
"mixnets", "mixnets",
"Grafana", "Grafana",
"Prometheus" "Prometheus",
"décarbonée",
"décarbonées",
"pourcent",
"pouième",
"misclassifications",
"Bayes",
"Hoeffding",
"misclassifies",
"app",
"leverages",
"webservices",
"problematics",
"leveraging",
"leechers",
"leecher",
"premiere",
"tuple",
"booleans",
"uploader",
"anymore",
"byzantine",
"anonymise",
"anonymised",
"cloudlets",
"versioned",
"blockchain",
"blockchains",
"Bitcoin",
"Markovian",
"wearables",
"churnful",
"boxplots",
"timeout",
"proxemics"
], ],
"close_windows_when_empty": false, "close_windows_when_empty": false,
"color_scheme": "Packages/User/predawn (Flake8Lint).tmTheme", "color_scheme": "Packages/User/predawn (Flake8Lint).tmTheme",
"dictionary": "Packages/Language - English/en_US.dic", "dictionary": "Packages/Language - English/en_GB.dic",
"find_selected_text": true, "find_selected_text": true,
"font_face": "Fira Code",
"font_size": 10, "font_size": 10,
"ignored_packages": "ignored_packages":
[ [
"LaTeXTools",
"SublimeREPL",
"Vintage" "Vintage"
], ],
"predawn_findreplace_small": true, "predawn_findreplace_small": true,
"predawn_quick_panel_small": true, "predawn_quick_panel_small": true,
"predawn_sidebar_arrows": true, "predawn_sidebar_arrows": false,
"predawn_sidebar_small": true, "predawn_sidebar_small": true,
"predawn_tabs_small": true, "predawn_tabs_small": true,
"theme": "predawn-DEV.sublime-theme" "theme": "predawn-DEV.sublime-theme"

View file

@ -0,0 +1,15 @@
// SublimeLinter Settings - User
{
// Set to true to print extra information in the console.
"debug": true,
"linters": {
"cppcheck": {
// "@disable": false,
// "args": [],
"enable": "all",
// "excludes": [],
// "lint_mode": "save"
"std": ["c++11"]
}
}
}

13
zshrc
View file

@ -24,6 +24,7 @@ CASE_SENSITIVE="false"
# DISABLE_AUTO_UPDATE="true" # DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days). # Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13 # export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls. # Uncomment the following line to disable colors in ls.
@ -103,10 +104,18 @@ fi
#export PATH=/home/adrien/bin:/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/adrien/goroot/bin:/usr/local/go/bin:/home/adrien/goroot/bin:/home/adrien/.shadow/bin #export PATH=/home/adrien/bin:/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/adrien/goroot/bin:/usr/local/go/bin:/home/adrien/goroot/bin:/home/adrien/.shadow/bin
#export PATH=$PATH:/home/adrien/.shadow/bin #export PATH=$PATH:/home/adrien/.shadow/bin
export PATH=$PATH:/home/adrien/.local/bin export PATH=$PATH:$HOME/.local/bin
if [ -d "$HOME/bin" ] ; then if [ -d "$HOME/bin" ] ; then
PATH="$PATH:$HOME/bin" PATH="$PATH:$HOME/bin"
fi fi
# Enable Autojump (j) # Enable Autojump (j)
. /usr/share/autojump/autojump.sh if [ -f "/usr/share/autojump/autojump.sh" ]; then
. /usr/share/autojump/autojump.sh
fi
# If there is a local zshrc, source it too
if [ -f "~/.zshrc.local" ]; then
. ~/.zshrc.local
fi