Update tcsh config

master
Nakidai 2024-12-12 01:58:53 +03:00
parent 21796838c0
commit 48952bcf94
Signed by: nakidai
GPG Key ID: C6BF6082F42307C0
2 changed files with 41 additions and 18 deletions

View File

@ -1,4 +1,5 @@
set __prompt_key_color="${__prompt_success_color}" set __prompt_key_color="${__host_color}"
if (! $__last_code == 0) set __prompt_key_color="${__prompt_failure_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="${__time_color}%T ${__host_color}%n@%m ${__path_color}%~ ${__git_color}`__git_current_branch` \n${__prompt_key_color}%#${__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

View File

@ -1,28 +1,42 @@
setenv EDITOR "nvim"
setenv SHELL "`which tcsh`" setenv SHELL "`which tcsh`"
setenv PAGER "less" setenv PATH "$PATH"
if ($?prompt) then if ($?prompt) then
set complete=enhance set complete=enhance
set autolist=ambiguous
# set __prompt_key='$'
# if ($USER == "root") set __prompt_key='#'
set promptchars = '$#' set promptchars = '$#'
alias __git_current_branch 'git rev-parse --abbrev-ref HEAD >& /dev/null && echo "(`git rev-parse --abbrev-ref HEAD`) "' 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 __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 __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 __git_color="${__reset_color}%{\033[38;2;131;139;167m%}"
set __path_color="${__reset_color}%{\033[1m%}%{\033[38;2;202;158;230m%}"
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%}'
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh' 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 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 ../.." alias ... "cd ../.."
alias .... "cd ../../.." alias .... "cd ../../.."
@ -30,10 +44,18 @@ alias ..... "cd ../../../.."
alias dp "doas pacman" alias dp "doas pacman"
alias dem "doas emerge" alias dem "doas emerge"
alias dadd "doas pkg_add"
alias drem "doas pkg_remove"
alias stdn "doas shutdown -ah 0" alias stdn "doas shutdown -ah 0"
alias rbot "doas reboot" alias rbot "doas reboot"
alias dv "doas vi" alias dv "doas vi"
alias w "xwininfo -root -children"
alias ls "ls --color" alias ls "ls --color"
alias l "ls -lah" alias l "ls -lAh"
alias tcli "transmission-cli"
alias gentoo "doas su gentoo" 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"