2022-08-24 22:26:28 +02:00
|
|
|
import os
|
|
|
|
# set where oh-my-xonsh lives
|
|
|
|
if not 'OMX_HOME' in ${...}:
|
|
|
|
$OMX_HOME = p"~/.config/xonsh/oh-my-xonsh"
|
|
|
|
# clone omx if needed
|
|
|
|
if not pf"{$OMX_HOME}".exists():
|
|
|
|
git clone --depth=1 https://github.com/oh-my-xonsh/oh-my-xonsh $OMX_HOME
|
|
|
|
|
|
|
|
# source oh-my-xonsh to give you the `omx` object
|
|
|
|
source $OMX_HOME/oh-my-xonsh.xsh
|
|
|
|
|
|
|
|
# choose your plugins
|
|
|
|
omx.plugins = [
|
|
|
|
'autocmd',
|
|
|
|
#'brew',
|
|
|
|
#'clipboard',
|
|
|
|
'common_aliases',
|
|
|
|
'copydir',
|
|
|
|
'dash',
|
|
|
|
'git',
|
|
|
|
'gitignore',
|
|
|
|
'golang',
|
|
|
|
'iwd',
|
|
|
|
#'macos',
|
|
|
|
'manpage_coloring',
|
|
|
|
'shrink_path',
|
|
|
|
'up',
|
|
|
|
]
|
|
|
|
|
|
|
|
# configure your plugins
|
|
|
|
# omx.config["plugins.git.skip_aliases"] = True
|
|
|
|
|
|
|
|
# initialize oh-my-xonsh
|
|
|
|
omx.init()
|
|
|
|
|
2022-08-27 11:38:05 +02:00
|
|
|
|
2022-08-24 22:26:28 +02:00
|
|
|
$XONSH_COLOR_STYLE = "solarized-dark"
|
2022-08-26 16:59:01 +02:00
|
|
|
$CASE_SENSITIVE_COMPLETIONS = False
|
2022-08-27 11:38:05 +02:00
|
|
|
$UPDATE_OS_ENVIRON = True
|
|
|
|
$XONTRIB_SH_SHELLS = ['bash', 'zsh']
|
|
|
|
xontrib load sh
|
2022-08-24 22:26:28 +02:00
|
|
|
|
2022-08-27 11:38:05 +02:00
|
|
|
$PATH.append("~/.local/bin")
|
|
|
|
aliases["vim"] = ["nvim", "--listen", "/tmp/nvimsocket"]
|