dotfiles/tcsh/.tcshrc

62 lines
2.4 KiB
Plaintext
Raw Normal View History

2024-12-12 01:58:53 +03:00
setenv SHELL "`which tcsh`"
setenv PATH "$PATH"
2024-03-25 21:49:14 +03:00
2023-11-01 02:40:53 +03:00
if ($?prompt) then
set complete=enhance
2024-12-12 01:58:53 +03:00
set autolist=ambiguous
# set __prompt_key='$'
# if ($USER == "root") set __prompt_key='#'
2024-03-25 21:49:14 +03:00
set promptchars = '$#'
2023-11-01 02:40:53 +03:00
alias __git_current_branch 'git rev-parse --abbrev-ref HEAD >& /dev/null && echo "(`git rev-parse --abbrev-ref HEAD`) "'
2024-12-12 01:58:53 +03:00
set __reset_cursor="%{\e[3 q%}"
2023-11-01 02:40:53 +03:00
set __reset_color="%{\033[0m%}"
set __host_color="${__reset_color}%{\033[38;2;140;170;238m%}"
2024-03-25 21:49:14 +03:00
set __git_color="${__reset_color}%{\033[38;2;131;139;167m%}"
2024-12-12 01:58:53 +03:00
set __path_color="${__reset_color}%{\033[1m%}%{\033[38;2;202;158;230m%}"
2024-03-25 21:49:14 +03:00
2024-12-12 01:58:53 +03:00
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh'
2023-11-01 02:40:53 +03:00
2024-12-12 01:58:53 +03:00
setenv APPIMAGELAUNCHER_DISABLE 1
2024-12-12 01:58:53 +03:00
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}`;
2023-11-01 02:40:53 +03:00
endif
2024-12-12 01:58:53 +03:00
# 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
2023-11-01 02:40:53 +03:00
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."
2024-03-25 21:49:14 +03:00
alias dp "doas pacman"
2023-11-01 02:40:53 +03:00
alias dem "doas emerge"
2024-12-12 01:58:53 +03:00
alias dadd "doas pkg_add"
alias drem "doas pkg_remove"
2023-11-01 02:40:53 +03:00
alias stdn "doas shutdown -ah 0"
alias rbot "doas reboot"
2024-03-25 21:49:14 +03:00
alias dv "doas vi"
2024-12-12 01:58:53 +03:00
alias w "xwininfo -root -children"
2024-03-25 21:49:14 +03:00
alias ls "ls --color"
2024-12-12 01:58:53 +03:00
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"