-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xonshrc
36 lines (32 loc) · 1.27 KB
/
.xonshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
from math import *
from random import *
from xonsh.parsers.ast import pprint_ast
from xonsh.parsers.lexer import Lexer
import ast
ppa=lambda expr: pprint_ast(ast.parse(expr))
xppa=lambda expr: pprint_ast(__xonsh__.execer.parser.parse(expr))
def lx(expr):
lexer=Lexer()
lexer.input(expr)
return list(lexer)
$COMPLETIONS_CONFIRM=True
$PROMPT='{BOLD_BLUE}{cwd_base}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
$CHROME_EXECUTABLE='/usr/bin/google-chrome-stable'
#$SHELL_TYPE='readline'
$CARGO_INSTALL_ROOT='/home/yaxollum/.local'
$GPG_TTY=$(tty)
$XONSH_HISTORY_BACKEND = 'sqlite'
$XONSH_CTRL_BKSP_DELETION=True
# For rime-install (https://github.com/rime/plum) to work properly with fcitx5:
$rime_dir="$HOME/.local/share/fcitx5/rime"
aliases['vi']='vimx'
aliases['cc']='cd && clear'
aliases['yt']="yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'"
aliases['g++']='g++ -std=c++20 -fmodules-ts -Wall -g'
aliases['g++20h']='g++ -std=c++20 -fmodules-ts -c -x c++-system-header'
aliases['fm']='launch_gui.sh dolphin .'
aliases['okular']='launch_gui.sh okular'
aliases['evince']='launch_gui.sh evince'
aliases['add_requirement']='python -m diagonator_clients.add_requirement'
source ~/.xx