Last active
July 14, 2023 09:18
-
-
Save Hansimov/c235b0311d35334da14fa7fb5e47aa35 to your computer and use it in GitHub Desktop.
cshell config (.cshrc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set color of promt | |
# https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.htmlet | |
set red="%{\033[1;31m%}" | |
set green="%{\033[0;32m%}" | |
set yellow="%{\033[1;33m%}" | |
set blue="%{\033[1;34m%}" | |
set cyan="%{\033[1;36m%}" | |
set white="%{\033[0;37m%}" | |
set clrend="%{\033[0m%}" | |
# set prompt="%{\033[30;43m%}%/ #%{\033[0;37;40m%} %{\033[0m%}" | |
set prompt="%{\033[1;33;40m%}%/ #%{\033[0;37;40m%} %{\033[0m%}" | |
# set prompt = "[%/] # " | |
set autolist=ambiguous | |
set complete=enhance | |
setenv wk /<your_disk_path> | |
setenv py39 $wk/pyvenv39/bin | |
alias python "$py39/python" | |
alias python3 "$py39/python" | |
alias pip "$py39/pip" | |
alias pv "source $py39/activate.csh" | |
alias gs "git status" | |
alias gb "git rev-parse --abbrev-ref HEAD" | |
alias gba "git -P branch" | |
alias gd "git diff" | |
alias gdp "git -P diff" | |
alias gdh "git diff HEAD^ HEAD" | |
alias gl "git log" | |
alias gn "git --no-pager log --pretty='format:%Cgreen[%h] %Cblue[%ai] %Creset[%an]%C(Red)%d %n %Creset%s %n' -n5" | |
alias ga "git add" | |
alias gc "git commit" | |
alias gk "git checkout" | |
alias gau "git add -u" | |
alias gcm "git commit -m" | |
alias gcan "git commit --amend --no-edit" | |
alias gp "git push" | |
alias gpf "git push -f" | |
alias gacp "git add -u && git commit --amend --no-edit && git push -f" | |
alias ta "tmux a" | |
alias td "tmux detach" | |
alias tn "tmux new -s" | |
alias tl "tmux ls" | |
alias ts "tmux select-pane -T" | |
alias cl "cd \!:1 && ls -F" | |
alias k9 "kill -9" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment