Compare commits
2 Commits
df2e405560
...
a701fa6698
Author | SHA1 | Date |
---|---|---|
Ambrose Chua | a701fa6698 | |
Ambrose Chua | c383a0583c |
|
@ -2,37 +2,61 @@
|
|||
"window.autoDetectColorScheme": true,
|
||||
"workbench.preferredDarkColorTheme": "Solarized Dark",
|
||||
"workbench.preferredLightColorTheme": "Solarized Light",
|
||||
"workbench.colorTheme": "Solarized Dark",
|
||||
"workbench.startupEditor": "none",
|
||||
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace",
|
||||
"editor.lineHeight": 1.3,
|
||||
"editor.minimap.showSlider": "always",
|
||||
"editor.minimap.enabled": false,
|
||||
"editor.rulers": [
|
||||
80,
|
||||
],
|
||||
"files.autoSave": "afterDelay",
|
||||
"gitlens.statusBar.enabled": false,
|
||||
"vim.normalModeKeyBindings": [
|
||||
{
|
||||
"before": [
|
||||
"K"
|
||||
"K",
|
||||
],
|
||||
"commands": [
|
||||
"editor.action.showHover"
|
||||
"editor.action.showHover",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"r",
|
||||
"f"
|
||||
"f",
|
||||
],
|
||||
"commands": [
|
||||
"fileutils.renameFile"
|
||||
"fileutils.renameFile",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"f"
|
||||
"f",
|
||||
],
|
||||
"commands": [
|
||||
"editor.action.formatDocument"
|
||||
"editor.action.formatDocument",
|
||||
],
|
||||
},
|
||||
{
|
||||
"before": [
|
||||
"<space>",
|
||||
"b",
|
||||
],
|
||||
"commands": [
|
||||
"workbench.action.toggleSidebarVisibility",
|
||||
],
|
||||
},
|
||||
],
|
||||
"workbench.colorTheme": "Solarized Dark",
|
||||
"redhat.telemetry.enabled": false,
|
||||
"git.autofetch": true,
|
||||
"gitlens.statusBar.enabled": false,
|
||||
"gitlab.aiAssistedCodeSuggestions.enabled": true,
|
||||
"docker.containers.label": "ContainerName",
|
||||
"docker.containers.description": [
|
||||
"Image",
|
||||
"Status",
|
||||
],
|
||||
}
|
||||
|
|
5
.zshrc
5
.zshrc
|
@ -191,7 +191,7 @@ setup_term_integration
|
|||
# term fixes
|
||||
|
||||
if [[ "$TERM" == "xterm-kitty" ]] || [[ "$TERM" == "xterm-iterm" ]]; then
|
||||
alias sudo="sudo TERM=xterm-256color"
|
||||
#alias sudo="sudo TERM=xterm-256color"
|
||||
term_color() {
|
||||
export TERM=xterm-256color
|
||||
}
|
||||
|
@ -540,6 +540,7 @@ function theme {
|
|||
export LIGHT=true
|
||||
echo "export LIGHT=true" > ~/.zshrc-theme
|
||||
gnome_theme=Adwaita
|
||||
gnome_color_scheme=prefer-light
|
||||
macos_theme=false
|
||||
;;
|
||||
dark)
|
||||
|
@ -548,6 +549,7 @@ function theme {
|
|||
export LIGHT=false
|
||||
echo "export LIGHT=false" > ~/.zshrc-theme
|
||||
gnome_theme=Adwaita-dark
|
||||
gnome_color_scheme=prefer-dark
|
||||
macos_theme=true
|
||||
;;
|
||||
esac
|
||||
|
@ -565,6 +567,7 @@ function theme {
|
|||
if [[ -z "$SSH_CLIENT" ]]; then
|
||||
if [[ $PLATFORM == linux ]] && which gsettings 2>&1 >/dev/null; then
|
||||
gsettings set org.gnome.desktop.interface gtk-theme $gnome_theme
|
||||
gsettings set org.gnome.desktop.interface color-scheme $gnome_color_scheme
|
||||
fi
|
||||
if [[ $PLATFORM == macos ]]; then
|
||||
osascript -e "tell app \"System Events\" to tell appearance preferences to set dark mode to $macos_theme"
|
||||
|
|
Loading…
Reference in New Issue