mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-02 03:59:37 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 740ad17207 | |||
| c9d0284c91 |
1
config/cheat/cheatsheets/community
Submodule
1
config/cheat/cheatsheets/community
Submodule
Submodule config/cheat/cheatsheets/community added at 36bdb99dcf
84
config/cheat/conf.yml
Normal file
84
config/cheat/conf.yml
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
---
|
||||||
|
# The editor to use with 'cheat -e <sheet>'. Defaults to $EDITOR or $VISUAL.
|
||||||
|
editor: EDITOR_PATH
|
||||||
|
|
||||||
|
# Should 'cheat' always colorize output?
|
||||||
|
colorize: true
|
||||||
|
|
||||||
|
# Which 'chroma' colorscheme should be applied to the output?
|
||||||
|
# Options are available here:
|
||||||
|
# https://github.com/alecthomas/chroma/tree/master/styles
|
||||||
|
style: monokai
|
||||||
|
|
||||||
|
# Which 'chroma' "formatter" should be applied?
|
||||||
|
# One of: "terminal", "terminal256", "terminal16m"
|
||||||
|
formatter: terminal16m
|
||||||
|
|
||||||
|
# Through which pager should output be piped?
|
||||||
|
# 'less -FRX' is recommended on Unix systems
|
||||||
|
# 'more' is recommended on Windows
|
||||||
|
pager: PAGER_PATH
|
||||||
|
|
||||||
|
# Cheatpaths are paths at which cheatsheets are available on your local
|
||||||
|
# filesystem.
|
||||||
|
#
|
||||||
|
# It is useful to sort cheatsheets into different cheatpaths for organizational
|
||||||
|
# purposes. For example, you might want one cheatpath for community
|
||||||
|
# cheatsheets, one for personal cheatsheets, one for cheatsheets pertaining to
|
||||||
|
# your day job, one for code snippets, etc.
|
||||||
|
#
|
||||||
|
# Cheatpaths are scoped, such that more "local" cheatpaths take priority over
|
||||||
|
# more "global" cheatpaths. (The most global cheatpath is listed first in this
|
||||||
|
# file; the most local is listed last.) For example, if there is a 'tar'
|
||||||
|
# cheatsheet on both global and local paths, you'll be presented with the local
|
||||||
|
# one by default. ('cheat -p' can be used to view cheatsheets from alternative
|
||||||
|
# cheatpaths.)
|
||||||
|
#
|
||||||
|
# Cheatpaths can also be tagged as "read only". This instructs cheat not to
|
||||||
|
# automatically create cheatsheets on a read-only cheatpath. Instead, when you
|
||||||
|
# would like to edit a read-only cheatsheet using 'cheat -e', cheat will
|
||||||
|
# perform a copy-on-write of that cheatsheet from a read-only cheatpath to a
|
||||||
|
# writeable cheatpath.
|
||||||
|
#
|
||||||
|
# This is very useful when you would like to maintain, for example, a
|
||||||
|
# "pristine" repository of community cheatsheets on one cheatpath, and an
|
||||||
|
# editable personal reponsity of cheatsheets on another cheatpath.
|
||||||
|
#
|
||||||
|
# Cheatpaths can be also configured to automatically apply tags to cheatsheets
|
||||||
|
# on certain paths, which can be useful for querying purposes.
|
||||||
|
# Example: 'cheat -t work jenkins'.
|
||||||
|
#
|
||||||
|
# Community cheatsheets must be installed separately, though you may have
|
||||||
|
# downloaded them automatically when installing 'cheat'. If not, you may
|
||||||
|
# download them here:
|
||||||
|
#
|
||||||
|
# https://github.com/cheat/cheatsheets
|
||||||
|
cheatpaths:
|
||||||
|
# Cheatpath properties mean the following:
|
||||||
|
# 'name': the name of the cheatpath
|
||||||
|
# (view with 'cheat -d', filter with 'cheat -p')
|
||||||
|
# 'path': the filesystem path of the cheatsheet directory
|
||||||
|
# (view with 'cheat -d')
|
||||||
|
# 'tags': tags that should be automatically applied to sheets on this path
|
||||||
|
# 'readonly': shall user-created ('cheat -e') cheatsheets be saved here?
|
||||||
|
- name: community
|
||||||
|
path: ~/.config/cheat/cheatsheets/community
|
||||||
|
tags: [ community ]
|
||||||
|
readonly: true
|
||||||
|
|
||||||
|
# If you have personalized cheatsheets, list them last. They will take
|
||||||
|
# precedence over the more global cheatsheets.
|
||||||
|
- name: personal
|
||||||
|
path: ~/.config/cheat/cheatsheets/personal
|
||||||
|
tags: [ personal ]
|
||||||
|
readonly: false
|
||||||
|
|
||||||
|
# While it requires no configuration here, it's also worth noting that
|
||||||
|
# cheat will automatically append directories named '.cheat' within the
|
||||||
|
# current working directory to the 'cheatpath'. This can be very useful if
|
||||||
|
# you'd like to closely associate cheatsheets with, for example, a directory
|
||||||
|
# containing source code.
|
||||||
|
#
|
||||||
|
# Such "directory-scoped" cheatsheets will be treated as the most "local"
|
||||||
|
# cheatsheets, and will override less "local" cheatsheets. Similarly,
|
||||||
|
# directory-scoped cheatsheets will always be editable ('readonly: false').
|
||||||
32
config/yamllint/config
Normal file
32
config/yamllint/config
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
ignore-from-file: [.gitignore, .yamlignore]
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
||||||
|
brackets:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
||||||
|
colons:
|
||||||
|
level: warning
|
||||||
|
commas:
|
||||||
|
level: warning
|
||||||
|
comments: disable
|
||||||
|
comments-indentation: disable
|
||||||
|
document-start: disable
|
||||||
|
empty-lines:
|
||||||
|
level: warning
|
||||||
|
hyphens:
|
||||||
|
level: warning
|
||||||
|
indentation:
|
||||||
|
level: warning
|
||||||
|
indent-sequences: consistent
|
||||||
|
line-length:
|
||||||
|
level: warning
|
||||||
|
allow-non-breakable-inline-mappings: true
|
||||||
|
max: 120
|
||||||
|
truthy: disable
|
||||||
|
|
||||||
@@ -93,9 +93,9 @@ function section_install
|
|||||||
;;
|
;;
|
||||||
nvm)
|
nvm)
|
||||||
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION_NVM/install.sh" | bash \
|
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION_NVM/install.sh" | bash \
|
||||||
&& nvm install --lts --latest-npm --default \
|
&& nvm install --lts --latest-npm --default
|
||||||
&& git checkout "$HOME/.zshrc" \
|
git checkout "$DOTFILES/base/zshrc"
|
||||||
&& msg_yay "nvm installed!"
|
msg_yay "nvm installed!"
|
||||||
;;
|
;;
|
||||||
npm)
|
npm)
|
||||||
bash "$DOTFILES/scripts/install-npm-packages.sh" \
|
bash "$DOTFILES/scripts/install-npm-packages.sh" \
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ have go && {
|
|||||||
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
||||||
github.com/ericchiang/pup@latest
|
github.com/ericchiang/pup@latest
|
||||||
github.com/suntong/html2md@latest
|
github.com/suntong/html2md@latest
|
||||||
|
github.com/cheat/cheat/cmd/cheat@latest
|
||||||
)
|
)
|
||||||
|
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ have npm && {
|
|||||||
"prettier"
|
"prettier"
|
||||||
"@bchatard/alfred-jetbrains"
|
"@bchatard/alfred-jetbrains"
|
||||||
"@johnnymorganz/stylua-bin"
|
"@johnnymorganz/stylua-bin"
|
||||||
"js-debug"
|
|
||||||
"stylelint-lsp"
|
"stylelint-lsp"
|
||||||
"blade-formatter"
|
"blade-formatter"
|
||||||
"@loopback/cli"
|
"@loopback/cli"
|
||||||
@@ -29,8 +28,17 @@ have npm && {
|
|||||||
# Skip comments
|
# Skip comments
|
||||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
||||||
|
|
||||||
msg_run "Installing npm package:" "$pkg"
|
if [[ $(npm ls -g -p "$pkg") != "" ]]; then
|
||||||
npm install -g --no-fund --no-progress --no-timing "$pkg"
|
msg_run_done "$pkg" "already installed"
|
||||||
|
else
|
||||||
|
msg_run "Installing npm package:" "$pkg"
|
||||||
|
npm install -g --no-fund --no-progress --no-timing "$pkg"
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
|
|
||||||
|
msg_run "Upgrading all global packages"
|
||||||
|
npm -g --no-progress --no-timing --no-fund outdated
|
||||||
|
npm -g --no-timing --no-fund upgrade
|
||||||
} || msg_err "npm could not be found."
|
} || msg_err "npm could not be found."
|
||||||
|
|||||||
Reference in New Issue
Block a user