Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.

Fix tcsh alias and hooks #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions fasd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ EOS
;;

tcsh-alias) cat <<EOS
;alias a 'fasd -a';
alias a 'fasd -a';
alias s 'fasd -si';
alias sd 'fasd -sid';
alias sf 'fasd -sif';
Expand Down Expand Up @@ -152,9 +152,8 @@ EOS
;;

tcsh-hook) cat <<EOS
;alias fasd-prev-cmd 'fasd --sanitize \`history -h 1\`';
set pprecmd="\`alias precmd\`";
alias precmd '\$pprecmd; eval "fasd --proc \`fasd-prev-cmd\`" >& /dev/null';
alias fasd-prev-cmd 'fasd --sanitize \`history -h 1\`';
alias precmd 'eval "fasd --proc \`fasd-prev-cmd\`" >& /dev/null';
EOS

;;
Expand Down