Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| // same as your regular shadcn datatable implementation (which uses tanstack table) | |
| // note that the shadcn datatable uses shadcn table for the ui. see https://ui.shadcn.com/docs/components/data-table | |
| import { | |
| ColumnFiltersState, | |
| SortingState, | |
| VisibilityState, | |
| flexRender, | |
| getCoreRowModel, | |
| getFilteredRowModel, |
| { | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "project": "./tsconfig.json", | |
| "tsconfigRootDir": "." | |
| }, | |
| "env": { | |
| "browser": true, | |
| "jest/globals": true | |
| }, |
| import React from 'react' | |
| import { connect } from 'react-redux' | |
| import { redirect as redirectAction } from 'src/redux/auth/action'; | |
| class Index extends React.Component { | |
| static propTypes = { | |
| redirect: React.PropTypes.func.isRequired, | |
| }; |
| import 'core-js/es6'; | |
| import 'core-js/es7/reflect'; | |
| import 'reflect-metadata'; | |
| import 'zone.js/dist/zone'; | |
| import 'zone.js/dist/long-stack-trace-zone'; | |
| import 'zone.js/dist/proxy'; | |
| import 'zone.js/dist/sync-test'; | |
| import 'zone.js/dist/jasmine-patch'; | |
| import 'zone.js/dist/async-test'; |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |