Update tcsh config
parent
21796838c0
commit
48952bcf94
|
@ -1,4 +1,5 @@
|
|||
set __prompt_key_color="${__prompt_success_color}"
|
||||
if (! $__last_code == 0) set __prompt_key_color="${__prompt_failure_color}"
|
||||
|
||||
set prompt="${__time_color}%T ${__host_color}%n@%m ${__path_color}%~ ${__git_color}`__git_current_branch` \n${__prompt_key_color}%#${__reset_color}${__reset_cursor} "
|
||||
set __prompt_key_color="${__host_color}"
|
||||
if (! $__last_code == 0) set __prompt_key_color="%{\033[38;2;231;130;132m%}"
|
||||
# set prompt="${__host_color}%n@%m ${__git_color}`__git_current_branch`${__path_color}%C ${__prompt_key_color}${__prompt_key}${__reset_color}${__reset_cursor} "
|
||||
set prompt="${__host_color}%n@%m ${__git_color}`__git_current_branch`${__path_color}%C ${__prompt_key_color}%#${__reset_color}${__reset_cursor} "
|
||||
rehash
|
||||
|
|
50
tcsh/.tcshrc
50
tcsh/.tcshrc
|
@ -1,28 +1,42 @@
|
|||
setenv EDITOR "nvim"
|
||||
setenv SHELL "`which tcsh`"
|
||||
setenv PAGER "less"
|
||||
setenv SHELL "`which tcsh`"
|
||||
setenv PATH "$PATH"
|
||||
|
||||
if ($?prompt) then
|
||||
set complete=enhance
|
||||
set autolist=ambiguous
|
||||
|
||||
# set __prompt_key='$'
|
||||
# if ($USER == "root") set __prompt_key='#'
|
||||
set promptchars = '$#'
|
||||
|
||||
alias __git_current_branch 'git rev-parse --abbrev-ref HEAD >& /dev/null && echo "(`git rev-parse --abbrev-ref HEAD`) "'
|
||||
|
||||
set __reset_cursor="%{\033[3 q%}"
|
||||
set __reset_cursor="%{\e[3 q%}"
|
||||
set __reset_color="%{\033[0m%}"
|
||||
set __time_color="${__reset_color}%{\033[38;2;131;139;167m%}"
|
||||
set __host_color="${__reset_color}%{\033[38;2;140;170;238m%}"
|
||||
set __path_color="${__reset_color}%{\033[1m%}%{\033[38;2;202;158;230m%}"
|
||||
set __git_color="${__reset_color}%{\033[38;2;131;139;167m%}"
|
||||
|
||||
set __prompt_success_color="${__reset_color}%{\033[38;2;140;170;238m%}"
|
||||
set __prompt_failure_color="${__reset_color}%{\033[38;2;231;130;132m%}"
|
||||
|
||||
if ($USER == "root") set __prompt_key='${__reset_color}%{\033[38;2;231;130;132m%}'
|
||||
set __path_color="${__reset_color}%{\033[1m%}%{\033[38;2;202;158;230m%}"
|
||||
|
||||
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh'
|
||||
|
||||
setenv APPIMAGELAUNCHER_DISABLE 1
|
||||
|
||||
setenv HOMEBREW_PREFIX /home/linuxbrew/.linuxbrew;
|
||||
setenv HOMEBREW_CELLAR /home/linuxbrew/.linuxbrew/Cellar;
|
||||
setenv HOMEBREW_REPOSITORY /home/linuxbrew/.linuxbrew/Homebrew;
|
||||
setenv PATH /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH;
|
||||
setenv PATH $HOME/.local/bin:$PATH;
|
||||
setenv PATH $PATH\:$HOME/.spoof-dpi/bin
|
||||
test ${?MANPATH} -eq 1 && setenv MANPATH :${MANPATH};
|
||||
setenv INFOPATH /home/linuxbrew/.linuxbrew/share/info`test ${?INFOPATH} -eq 1 && echo :${INFOPATH}`;
|
||||
endif
|
||||
|
||||
# setenv https_proxy "https://127.0.0.1:3000"
|
||||
# setenv http_proxy "https://127.0.0.1:3000"
|
||||
# setenv socks5_proxy "https://127.0.0.1:3000"
|
||||
|
||||
set EDITOR=nvim
|
||||
|
||||
alias .. "cd .."
|
||||
alias ... "cd ../.."
|
||||
alias .... "cd ../../.."
|
||||
|
@ -30,10 +44,18 @@ alias ..... "cd ../../../.."
|
|||
|
||||
alias dp "doas pacman"
|
||||
alias dem "doas emerge"
|
||||
alias dadd "doas pkg_add"
|
||||
alias drem "doas pkg_remove"
|
||||
alias stdn "doas shutdown -ah 0"
|
||||
alias rbot "doas reboot"
|
||||
alias dv "doas vi"
|
||||
alias w "xwininfo -root -children"
|
||||
alias ls "ls --color"
|
||||
alias l "ls -lah"
|
||||
|
||||
alias gentoo "doas su gentoo"
|
||||
alias l "ls -lAh"
|
||||
alias tcli "transmission-cli"
|
||||
alias shooter "vectozavr-shooter -n Nakidai"
|
||||
alias nvidia "env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia"
|
||||
alias nvfox "env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json firefox"
|
||||
alias noproxy "env https_proxy= http_proxy= socks5_proxy="
|
||||
alias ssproxy "env https_proxy=socks5://localhost:3000 http_proxy=socks5://localhost:3000 socks5_proxy=socks5://localhost:3000"
|
||||
alias spoofproxy "env https_proxy=http://localhost:9090 http_proxy=http://localhost:9090"
|
||||
|
|
Loading…
Reference in New Issue