From 1231a7262e6d9c54d900264b8472f66f46653746 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Sun, 1 Mar 2026 12:15:57 -0800 Subject: copy bash to tcsh --- config/tcshrc | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 config/tcshrc (limited to 'config') diff --git a/config/tcshrc b/config/tcshrc new file mode 100644 index 0000000..102ba72 --- /dev/null +++ b/config/tcshrc @@ -0,0 +1,48 @@ +set path = (~/.ghcup/bin ~/.cabal/bin ~/.cargo/bin ~/.mcabal/bin ~/.local/musl/bin ~/.local/bin /usr/local/bin /usr/bin /bin) + +set prompt = "%n@%m:%~> " + +if ( ${?PKG_CONFIG_PATH} ) then + setenv PKG_CONFIG_PATH `echo /usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}` +else + setenv PKG_CONFIG_PATH "/usr/local/lib/pkgconfig" +endif + +setenv ALTERNATE_EDITOR emacs +setenv EDITOR "emacsclient -c" +setenv VISUAL "emacsclient -c" +setenv MORE "FRX" +setenv LESS "FRX" +setenv PAGER `which less || which more || echo "cat"` +setenv EXINIT "set ai ic sm sw=4 ts=4" + +alias cb "xclip -selection clipboard" +alias bctl "bluetoothctl" +alias less "less -i" + +alias e "emacs" +alias a "emacsclient -n" +alias femacs "fbterm -- fbterm-emacs.sh" +alias demacs "emacs --daemon" + +alias ta "tmux attach" + +alias gl "git log --graph --all --oneline" +alias glt "git log --graph --all --oneline --simplify-by-decoration" +alias gs "git status" +alias gc "git checkout" +alias gb "git branch" +alias gd "git diff --patch" +alias gds "git diff --patch --cached" + +alias pd "pushd" +alias ppd "popd" +alias up "cd .." + +alias ll "ls -la" +alias ls "ls --color=auto" +alias grep 'grep --color=auto' + +if (`filetest -e /etc/complete.tcsh`) then + source /etc/complete.tcsh +endif -- cgit v1.2.3