dotfiles/tcsh/.tcshrc

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-03-25 21:49:14 +03:00
setenv EDITOR "nvim"
setenv SHELL "`which tcsh`"
setenv PAGER "less"
2023-11-01 02:40:53 +03:00
if ($?prompt) then
set complete=enhance
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-03-25 21:49:14 +03:00
set __reset_cursor="%{\033[3 q%}"
2023-11-01 02:40:53 +03:00
set __reset_color="%{\033[0m%}"
2024-03-25 21:49:14 +03:00
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%}"
2024-03-25 21:49:14 +03:00
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%}"
2023-11-01 02:40:53 +03:00
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh'
2023-11-01 02:40:53 +03:00
endif
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"
alias stdn "doas shutdown -ah 0"
alias rbot "doas reboot"
2024-03-25 21:49:14 +03:00
alias dv "doas vi"
alias ls "ls --color"
alias l "ls -lah"