Compare commits
11 Commits
24e9117c04
...
1a3d439586
Author | SHA1 | Date | |
---|---|---|---|
1a3d439586 | |||
e0875add3c | |||
c9a470b116 | |||
c4057d5f67 | |||
cd430addd0 | |||
c870497f0b | |||
1fd0a07b13 | |||
f9b82413d6 | |||
53005db9e8 | |||
cc0af0c824 | |||
ab6b0917bd |
171
.bash_aliases
171
.bash_aliases
@ -1,19 +1,29 @@
|
||||
export CONFIG_DIR="$HOME/.dotfiles"
|
||||
|
||||
# Refresh
|
||||
# ╦═╗┌─┐┌─┐┬─┐┌─┐┌─┐┬ ┬
|
||||
# ╠╦╝├┤ ├┤ ├┬┘├┤ └─┐├─┤
|
||||
# ╩╚═└─┘└ ┴└─└─┘└─┘┴ ┴
|
||||
|
||||
if [ -z "${ZSH}" ]; then
|
||||
alias refresh=". $HOME/.bashrc"
|
||||
else
|
||||
alias refresh=". $HOME/.zshrc"
|
||||
fi
|
||||
|
||||
# Nautilus
|
||||
alias open="nautilus ."
|
||||
# ╦┌┐┌┌─┐┌┬┐┌─┐┬ ┬
|
||||
# ║│││└─┐ │ ├─┤│ │
|
||||
# ╩┘└┘└─┘ ┴ ┴ ┴┴─┘┴─┘
|
||||
|
||||
# Install scripts
|
||||
alias install_cli="$CONFIG_DIR/auto-config-cli.sh"
|
||||
alias install_gui="$CONFIG_DIR/auto-config.sh"
|
||||
|
||||
# ╔╦╗╦╔═╗╔═╗
|
||||
# ║║║║╚═╗║
|
||||
# ╩ ╩╩╚═╝╚═╝
|
||||
|
||||
# Nautilus
|
||||
alias open="nautilus ."
|
||||
|
||||
# Go to config directory
|
||||
alias config="cd $CONFIG_DIR"
|
||||
|
||||
@ -52,33 +62,65 @@ function s_clean {
|
||||
s_on
|
||||
}
|
||||
|
||||
# Make
|
||||
alias mk='make -j5'
|
||||
alias mec='make'
|
||||
alias mecque='make'
|
||||
|
||||
# VPN
|
||||
alias vpn="sudo openvpn --config $HOME/Nextcloud/#\ -\ Configs/rguiheneuf.ovpn"
|
||||
|
||||
# Git
|
||||
alias gst='git status'
|
||||
# ╔═╗┬┌┬┐ ╔═╗┬ ┬┌─┐┌─┐┌─┐┌─┐
|
||||
# ║ ╦│ │ ╠═╣│ │├─┤└─┐├┤ └─┐
|
||||
# ╚═╝┴ ┴ ╩ ╩┴─┘┴┴ ┴└─┘└─┘└─┘
|
||||
|
||||
alias gs='git status'
|
||||
alias gc='git checkout'
|
||||
alias gcm='git checkout master'
|
||||
alias gpl='git pull'
|
||||
alias gph='git push'
|
||||
alias pull='git pull'
|
||||
alias push='git push'
|
||||
alias gsu='git submodule update --init'
|
||||
alias gcp='git cherry-pick'
|
||||
|
||||
alias add='git add'
|
||||
alias commit='git commit -m "To fixup"'
|
||||
alias cont='git rebase --continue'
|
||||
|
||||
# Git cleaners
|
||||
alias branch_clean='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
||||
alias tag_clean='git tag -l | xargs git tag -d && git fetch -t'
|
||||
|
||||
function git_parent {
|
||||
git log --pretty=format:"%D" | \
|
||||
grep -v "^$" | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "HEAD" | \
|
||||
grep -v `git rev-parse --abbrev-ref HEAD` | \
|
||||
grep -v "tag" | \
|
||||
head -n1 | \
|
||||
sed "s/origin\/\([^,]*\)/\1/"
|
||||
}
|
||||
|
||||
function git_parent_tag {
|
||||
git log --pretty=format:"%D" | \
|
||||
grep -v "^$" | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "HEAD" | \
|
||||
grep -v `git rev-parse --abbrev-ref HEAD` | \
|
||||
head -n1 | \
|
||||
sed "s/origin\/\([^,]*\)/\1/" | \
|
||||
sed "s/tag: \([^,]*\)/\1/"
|
||||
}
|
||||
|
||||
alias log='git log --graph --decorate --oneline'
|
||||
|
||||
# Branch
|
||||
function branch_create {
|
||||
git checkout -b $1
|
||||
git push -u origin $1
|
||||
}
|
||||
|
||||
# Tag
|
||||
alias tag_clean='git tag -l | xargs git tag -d && git fetch -t'
|
||||
|
||||
# Tag helpers
|
||||
function tag_create {
|
||||
git tag $1
|
||||
git push origin $1
|
||||
@ -91,18 +133,22 @@ function tag_replace {
|
||||
git push origin $1
|
||||
}
|
||||
|
||||
function grb {
|
||||
git rebase -i HEAD~$1
|
||||
}
|
||||
|
||||
function g_save {
|
||||
git add *
|
||||
git commit -m "[skip ci] Save: do not merge"
|
||||
git push -f
|
||||
}
|
||||
|
||||
# ╔═╗┬┌┬┐ ╦═╗┌─┐┌┐ ┌─┐┌─┐┌─┐
|
||||
# ║ ╦│ │ ╠╦╝├┤ ├┴┐├─┤└─┐├┤
|
||||
# ╚═╝┴ ┴ ╩╚═└─┘└─┘┴ ┴└─┘└─┘
|
||||
|
||||
function grb {
|
||||
git rebase --interactive HEAD~$1
|
||||
}
|
||||
|
||||
function grbm {
|
||||
# Save actual branch
|
||||
# Save current branch
|
||||
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
|
||||
|
||||
# Checkout master & pull
|
||||
@ -111,24 +157,76 @@ function grbm {
|
||||
|
||||
# Back to previous branch
|
||||
git checkout ${BRANCH}
|
||||
git rebase -i master
|
||||
git rebase --interactive master
|
||||
}
|
||||
|
||||
function grbr {
|
||||
function grbi {
|
||||
# Save current branch
|
||||
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
|
||||
|
||||
# Save parent branch
|
||||
PARENT=$(git_parent)
|
||||
|
||||
# Checkout parent & pull
|
||||
git checkout ${PARENT}
|
||||
git pull
|
||||
|
||||
echo "Rebasing on" ${PARENT}
|
||||
|
||||
# Back to previous branch
|
||||
git checkout ${BRANCH}
|
||||
git rebase --interactive ${PARENT}
|
||||
}
|
||||
|
||||
function grbroot {
|
||||
git rebase --interactive --autosquash --root
|
||||
}
|
||||
|
||||
function gam {
|
||||
git autofixup master
|
||||
git rebase --interactive --autosquash master
|
||||
}
|
||||
|
||||
function ga {
|
||||
git autofixup HEAD~$1
|
||||
git rebase --interactive --autosquash HEAD~$1
|
||||
}
|
||||
|
||||
# Repositories
|
||||
function gam {
|
||||
git autofixup master
|
||||
git rebase --interactive --autosquash master
|
||||
}
|
||||
|
||||
function gai {
|
||||
# Save parent branch
|
||||
PARENT=$(git_parent)
|
||||
|
||||
echo "Rebasing with autofixup on" ${PARENT}
|
||||
|
||||
git autofixup ${PARENT}
|
||||
git rebase --interactive --autosquash ${PARENT}
|
||||
}
|
||||
|
||||
# ╔═╗┬┌┬┐ ╔═╗┬─┐┌─┐┌─┐┬┬ ┌─┐
|
||||
# ║ ╦│ │ ╠═╝├┬┘│ │├┤ ││ ├┤
|
||||
# ╚═╝┴ ┴ ╩ ┴└─└─┘└ ┴┴─┘└─┘
|
||||
|
||||
function git_pro {
|
||||
git config --global user.name "Robin-Charles GUIHENEUF"
|
||||
git config --global user.email rguiheneuf@netatmo.com
|
||||
}
|
||||
|
||||
function git_perso {
|
||||
git config --global user.name "Robin-Charles Guihéneuf"
|
||||
git config --global user.email robin-charles@hotmail.fr
|
||||
}
|
||||
|
||||
# ╔═╗┬┌┬┐ ╔═╗┌┬┐┌─┐┌┐┌┌┬┐
|
||||
# ║ ╦│ │ ╠═╣│││├┤ │││ ││
|
||||
# ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘
|
||||
|
||||
alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
|
||||
alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
|
||||
|
||||
# ╦═╗┌─┐┌─┐┌─┐┌─┐┬┌┬┐┌─┐┬─┐┬┌─┐┌─┐
|
||||
# ╠╦╝├┤ ├─┘│ │└─┐│ │ │ │├┬┘│├┤ └─┐
|
||||
# ╩╚═└─┘┴ └─┘└─┘┴ ┴ └─┘┴└─┴└─┘└─┘
|
||||
|
||||
alias bc='cd $HOME/Netatmo/embedded/firmware-bitcloud'
|
||||
alias fw='cd $HOME/Netatmo/embedded/firmware'
|
||||
alias nmr='cd $HOME/Netatmo/embedded/nmr'
|
||||
@ -137,7 +235,7 @@ alias mag='cd $HOME/Netatmo/embedded/magellan'
|
||||
alias nsp='cd $HOME/Netatmo/embedded/nsp'
|
||||
alias mulot='cd $HOME/mulot/firmware'
|
||||
|
||||
# Repositories in editor
|
||||
# In editor
|
||||
alias c_bc='c $HOME/Netatmo/firmware-bitcloud.code-workspace'
|
||||
alias c_fw='c $HOME/Netatmo/firmware.code-workspace'
|
||||
alias c_nmr='c $HOME/Netatmo/nmr.code-workspace'
|
||||
@ -154,6 +252,10 @@ function ssh_keygen {
|
||||
cd -
|
||||
}
|
||||
|
||||
# ╔╗╔┌─┐┌┬┐┌─┐┌┬┐┌┬┐┌─┐
|
||||
# ║║║├┤ │ ├─┤ │ ││││ │
|
||||
# ╝╚╝└─┘ ┴ ┴ ┴ ┴ ┴ ┴└─┘
|
||||
|
||||
# Flash sniffer nRF52
|
||||
function nrf52 {
|
||||
arm-none-eabi-objcopy -O ihex output/nrf52840/bin/$1 $1.hex
|
||||
@ -167,11 +269,6 @@ function nrf52 {
|
||||
fi
|
||||
}
|
||||
|
||||
# Make
|
||||
alias mk='make -j5'
|
||||
alias mec='make'
|
||||
alias mecque='make'
|
||||
|
||||
# app.S
|
||||
function generate_objdump {
|
||||
arm-none-eabi-objdump -S $1.elf > app.S
|
||||
@ -188,6 +285,10 @@ alias py_wireshark='$HOME/Netatmo/core/python-emb-tools/python/bin/zigbee/python
|
||||
alias stflash='sudo stm32_sbm -f app.bin -s 0x1000 -d'
|
||||
alias stflash_dfu='stm32_dfu -f app-jtag.bin -b'
|
||||
|
||||
# ╔═╗┬┌┬┐ ╔═╗┬─┐┌─┐┌┬┐┌─┐┌┬┐
|
||||
# ║ ╦│ │ ╠═╝├┬┘│ ││││├─┘ │
|
||||
# ╚═╝┴ ┴ ╩ ┴└─└─┘┴ ┴┴ ┴
|
||||
|
||||
# Git prompt
|
||||
if [ -z "${ZSH}" ]; then
|
||||
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
||||
@ -200,6 +301,16 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# ╔═╗─┐ ┬┌─┐┌─┐┬─┐┌┬┐
|
||||
# ║╣ ┌┴┬┘├─┘│ │├┬┘ │
|
||||
# ╚═╝┴ └─┴ └─┘┴└─ ┴
|
||||
|
||||
export PATH=$PATH:~/Netatmo/core/embedded-tools/Linux/flasher
|
||||
export PATH=$PATH:~/Netatmo/core/generic-embedded/stm32_sbm
|
||||
export PATH=$PATH:~/Netatmo/core/generic-embedded/stm32_dfu
|
||||
export PATH=$PATH:~/Netatmo/embedded/firmware-bitcloud/toolchain/arm-none-eabi/bin
|
||||
export PATH=$PATH:~/Netatmo/embedded/nmr/scripts/flash
|
||||
|
||||
# Autofixup
|
||||
export PATH=$PATH:$HOME/.git-autofixup
|
||||
|
||||
|
3
.zshrc
3
.zshrc
@ -75,6 +75,9 @@ plugins=(
|
||||
# zsh-history-substring-search
|
||||
)
|
||||
|
||||
zstyle ':completion:*:make:*:targets' call-command true
|
||||
zstyle ':completion:*:make:*' tag-order 'targets'
|
||||
|
||||
source $HOME/.bash_aliases
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
@ -14,8 +14,11 @@ then
|
||||
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list
|
||||
fi
|
||||
|
||||
sudo apt install codium
|
||||
sudo apt install terminator codium
|
||||
|
||||
mkdir -p $HOME/.config/VSCodium/User/
|
||||
ln -sf $HOME/.dotfiles/codium/keybindings.json $HOME/.config/VSCodium/User/keybindings.json
|
||||
ln -sf $HOME/.dotfiles/codium/settings.json $HOME/.config/VSCodium/User/settings.json
|
||||
|
||||
mkdir -p $HOME/.config/terminator/
|
||||
ln -sf $HOME/.dotfiles/terminator/config $HOME/.config/terminator/config
|
||||
|
31
codium/keybindings.json
Normal file
31
codium/keybindings.json
Normal file
@ -0,0 +1,31 @@
|
||||
// Placer vos combinaisons de touches dans ce fichier pour remplacer les valeurs par défaut
|
||||
[
|
||||
{
|
||||
"key": "ctrl+[Backslash]",
|
||||
"command": "workbench.action.navigateBack"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+u",
|
||||
"command": "editor.action.transformToUppercase"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+[BracketRight]",
|
||||
"command": "workbench.action.navigateForward"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+8",
|
||||
"command": "-workbench.action.navigateForward"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+alt+l",
|
||||
"command": "-workbench.view.explorer"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+[Quote]",
|
||||
"command": "workbench.action.openWorkspace"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+w",
|
||||
"command": "-editor.action.addSelectionToNextFindMatch"
|
||||
}
|
||||
]
|
56
codium/settings.json
Normal file
56
codium/settings.json
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"editor.insertSpaces": true,
|
||||
"editor.tabSize": 2,
|
||||
"editor.detectIndentation": true,
|
||||
"editor.mouseWheelScrollSensitivity": 2,
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnType": true,
|
||||
"editor.renderWhitespace": "all",
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"files.insertFinalNewline": true,
|
||||
"C_Cpp.formatting": "Disabled",
|
||||
"C_Cpp.updateChannel": "Default",
|
||||
"powermode.enabled": true,
|
||||
"powermode.enableShake": false,
|
||||
"powermode.enableExplosions": true,
|
||||
"powermode.maxExplosions": 1,
|
||||
"powermode.explosionSize": 10,
|
||||
"powermode.explosionOffset": 0.5,
|
||||
"powermode.explosionFrequency": 1,
|
||||
"powermode.explosionOrder": "random",
|
||||
"powermode.gifMode": "continue",
|
||||
"powermode.explosionDuration": 415,
|
||||
"powermode.backgroundMode": "image",
|
||||
"powermode.customExplosions": ["data:image/gif;base64,R0lGODlhWgBaAPIHAP///wAAAOvg4P7e3v/ExFpZWfW4uAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/gNHNDQAIfkECQoABwAsAAAAAFoAWgAAA/94utz+MMpJq7046827/2AojmRpnmiqrmzrvnAsz/RL3MSB57W6/7deCvgToog74xGpHAKbviR0xZtar9hUIFDaZgMAgBe0DXOv4LD4vCmrxdb0G66Rv9lN+WCgxh+2gIELdnt9U2l7iWZ/bnNmjYmFdHlhkXuAjpmPlnyTSoiRdpqaAZaLUKCdo6tzip5GoKyyrZ1+sLO4mba3ormyu7C9vqNjccO+wELCx8RozLnJNMvPpIfU0NbXs9Ey09p3qHOB3sfcL3YBBerq5HeBupSVpo4G9Y7p6wW95i5683P1DGjiJO7Tm3++CIK7pQZhLoWGGH6T52qhsonb4uEqkKjUwDB+LdrNWVcuHMZH6LJhlMPSmDuR4gAoAgMyBss+H2UWSlMTBk2dfGCauUcHECowM5ERXRPRYExc+4ZavPh0my4xBTX2EcC1K1eoUl9RneO1a7lTJjOZZUYTi1ClPc+dzOp2blNndsWmnRvXZ169e1dmUfAWal+5dovh5Xs45F/FKhl/ydu2buLGji8PDiBgrgDMIb9O/Dx4kFdmZUGfK8u6tWvV57a4nv05dWkGnD+P2827cxjStwmrAW4hDfHgubn2TA7bp9EMz4NLn069unUMCQAAIfkECQoABwAsFAAKAC4ATAAAA/94utxN8EDiqr126oi7X5v2jVg4kahjcmkrma4Lx7JIx+dNU3rv/8CgsBcoBoadAGAJKP6MR4uSuXTGjNSoQznoZhvQMKNIZWrBy663esCWzW71+oyWd93vPNnOlgLsU3mCZnxNF1xrg4pUcoYYXIuRjF50W5KXTJQegZiXlZadnp8MTaGYowucppGobaunj6+esbKsh7WzFaq4gqO7vG++WVDAZqBVBcnJv73Ewcd2A3kG1MHKy89oaYVl1AaC0WWVgdyd4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niGx8WimK/QXXyFBWkFp6p/rYak07CdW+CVX6HSk5luAXDon+Pqbu2Kr1QNX37usIGM96Xeb3rF29YEIK0fnqQN1MdEgMOHEAVQo8CwYcSH4RxUjBLxYhNFcA0XglwiQOTIfp1Amhy5UuXHky3JvWQ506XGkygJTou5s2ZPn9AG6kx4BGTJIxKhORRaBaKjiEybXpxKFWJUqQ8DVN1qD2nIImCLWA2htcmJsmY7aF16dizZriKIUEgAADs="],
|
||||
"editor.rulers": [
|
||||
100
|
||||
],
|
||||
"telemetry.enableTelemetry": false,
|
||||
"explorer.confirmDragAndDrop": false,
|
||||
"explorer.confirmDelete": false,
|
||||
"window.titleBarStyle": "custom",
|
||||
"window.zoomLevel": 0,
|
||||
"gitlens.keymap": "alternate",
|
||||
"gitlens.advanced.messages": {
|
||||
"suppressCommitHasNoPreviousCommitWarning": false,
|
||||
"suppressCommitNotFoundWarning": false,
|
||||
"suppressFileNotUnderSourceControlWarning": false,
|
||||
"suppressGitVersionWarning": false,
|
||||
"suppressLineUncommittedWarning": false,
|
||||
"suppressNoRepositoryWarning": false,
|
||||
"suppressResultsExplorerNotice": false,
|
||||
"suppressShowKeyBindingsNotice": true
|
||||
},
|
||||
"gitlens.views.fileHistory.enabled": true,
|
||||
"gitlens.views.lineHistory.enabled": true,
|
||||
"terminal.integrated.rendererType": "dom",
|
||||
"workbench.colorTheme": "Monokai",
|
||||
"editor.largeFileOptimizations": false,
|
||||
"editor.suggestSelection": "first",
|
||||
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
|
||||
"C_Cpp.intelliSenseEngine": "Tag Parser",
|
||||
"diffEditor.ignoreTrimWhitespace": false,
|
||||
"python.languageServer": "Microsoft",
|
||||
"gitlab.instanceUrl":"https://gitlab.corp.netatmo.com"
|
||||
}
|
10
navi/nginx.cheat
Normal file
10
navi/nginx.cheat
Normal file
@ -0,0 +1,10 @@
|
||||
% nginx
|
||||
|
||||
# Enable site
|
||||
ln -s /etc/nginx/sites-available/<ls_site> /etc/nginx/sites-enabled/<ls_site>
|
||||
|
||||
# Disable site
|
||||
rm /etc/nginx/sites-enabled/<rm_site>
|
||||
|
||||
$ ls_site: ls /etc/nginx/sites-available/ | awk '{print $1}'
|
||||
$ rm_site: ls /etc/nginx/sites-enabled/ | awk '{print $1}'
|
@ -9,9 +9,19 @@
|
||||
# Debug parser Legrand
|
||||
<debug_path>/debug_parser.py --project legrand -s <server> -c <syncapi_path>/legrand_<server>.swp -r -pp -g <gateway_mac>
|
||||
|
||||
# Enable debug mode Legrand
|
||||
<debug_path>/debug_config_setter.py --project legrand -s <server> -c <syncapi_path>/legrand_<server>.swp -g <gateway_mac> -t NLG -ke debug_enabled
|
||||
|
||||
# Disable debug mode Legrand
|
||||
<debug_path>/debug_config_setter.py --project legrand -s <server> -c <syncapi_path>/legrand_<server>.swp -g <gateway_mac> -t NLG -kd debug_enabled
|
||||
|
||||
# Analyse diagnosis
|
||||
<syncapi_path>/syncapiadmin.py --project legrand -s <server> --endpoint getdebuginfo -c <syncapi_path>/legrand_<server>.swp --mac <gateway_mac> | jq -r .body.diagnosis_content | <release_path>/decode_diagnosis.py
|
||||
|
||||
# Paths
|
||||
$ syncapi_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/syncapiadmin"
|
||||
$ debug_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/debug"
|
||||
$ release_path: echo "$HOME/Netatmo/core/python-emb-tools/python/bin/release"
|
||||
|
||||
# Variables
|
||||
$ server: echo "prod inte" | tr " " "\n"
|
||||
|
30
terminator/config
Normal file
30
terminator/config
Normal file
@ -0,0 +1,30 @@
|
||||
[global_config]
|
||||
window_state = maximise
|
||||
scroll_tabbar = True
|
||||
title_inactive_bg_color = "#000000"
|
||||
inactive_color_offset = 1.0
|
||||
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
|
||||
suppress_multiple_term_dialog = True
|
||||
title_use_system_font = False
|
||||
title_font = Sans 11
|
||||
[keybindings]
|
||||
[profiles]
|
||||
[[default]]
|
||||
background_darkness = 0.6
|
||||
background_type = transparent
|
||||
cursor_color = "#908c8c"
|
||||
font = Monospace 11
|
||||
foreground_color = "#ffffff"
|
||||
scrollback_infinite = True
|
||||
palette = "#000000:#aa0000:#00aa00:#f57900:#55ffff:#ff006e:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#55ffff:#ff006e:#00aaaa:#ffffff"
|
||||
use_system_font = False
|
||||
split_to_group = True
|
||||
[layouts]
|
||||
[[default]]
|
||||
[[[window0]]]
|
||||
type = Window
|
||||
parent = ""
|
||||
[[[child1]]]
|
||||
type = Terminal
|
||||
parent = window0
|
||||
[plugins]
|
@ -43,3 +43,13 @@ else
|
||||
ZSH_THEME_GIT_PROMPT_REBASE="%{$fg_bold[magenta]%}|REBASE%{${reset_color}%} "
|
||||
ZSH_THEME_GIT_PROMPT_BISECT="%{$fg_bold[magenta]%}|BISECT%{${reset_color}%} "
|
||||
fi
|
||||
|
||||
function theme_preexec {
|
||||
print -nr $'\e]2;'"$USER@$(hostname) » $PWD » $1 $2"$'\a'
|
||||
}
|
||||
add-zsh-hook preexec theme_preexec
|
||||
|
||||
function theme_precmd {
|
||||
print -nr $'\e]2;'"$USER@$(hostname) » $PWD"$'\a'
|
||||
}
|
||||
add-zsh-hook precmd theme_precmd
|
||||
|
Loading…
x
Reference in New Issue
Block a user