+ PS2 now unique to prevent confusion
+ Added custom python prompt theme
This commit is contained in:
parent
e28d71ce14
commit
34a791751c
4 changed files with 8 additions and 2 deletions
5
.config/python/pyrc
Executable file
5
.config/python/pyrc
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import os
|
||||
sys.ps1='\x1b[1;49;34m\n{}\n\x1b[1;49;32m!>\x1b[0m '.format(os.getlogin()) # bright yellow
|
||||
sys.ps2='\x1b[1;49;34m?>\x1b[0m ' # bright red
|
|
@ -42,6 +42,7 @@ export ADB_VENDOR_KEY="$XDG_CONFIG_HOME/android"
|
|||
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
|
||||
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
|
||||
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
|
||||
export PYTHONSTARTUP="${XDG_CONFIG_HOME:-$HOME/.config}/python/pyrc"
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/oh-my-zsh"
|
||||
|
|
|
@ -27,7 +27,7 @@ function zle-line-init zle-keymap-select {
|
|||
PS1="
|
||||
%B%F{blue}%~ \$vcs_info_msg_0_
|
||||
%F{green}${${KEYMAP/vicmd/N }/(main|viins)/}$>%f%b "
|
||||
PS2=$PS1
|
||||
PS2="%B%F{blue}?>%f%b "
|
||||
# RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
|
||||
# RPS2=$RPS1
|
||||
zle reset-prompt
|
||||
|
|
2
.psqlrc
2
.psqlrc
|
@ -1,2 +1,2 @@
|
|||
\set PROMPT1 '\n%[%033[1;34m%]%/@%n\n%[%033[1;32m%]%R%# %[%033[0m%]'
|
||||
\set PROMPT1 '\n%[%033[1;34m%]%n: [%/]\n%[%033[1;32m%]%R%# %[%033[0m%]'
|
||||
\set PROMPT2 ' %[%033[1;32m%]%R%# %[%033[0m%]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue