diff options
| -rw-r--r-- | alias | 3 | ||||
| -rwxr-xr-x | bin/unix/token | 6 |
2 files changed, 6 insertions, 3 deletions
| @@ -423,9 +423,6 @@ alias clock-reset='hwclock --systohc' | |||
| 423 | # misc | 423 | # misc |
| 424 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' | 424 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' |
| 425 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' | 425 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' |
| 426 | token() { | ||
| 427 | cd $SETTING_DIR/tokens && [[ -e $1 ]] && cat $1 || ls -l | ||
| 428 | } | ||
| 429 | unalias gr &>/dev/null | 426 | unalias gr &>/dev/null |
| 430 | gr() { | 427 | gr() { |
| 431 | grep -IR $1 . | 428 | grep -IR $1 . |
diff --git a/bin/unix/token b/bin/unix/token new file mode 100755 index 0000000..e410e0e --- /dev/null +++ b/bin/unix/token | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | cd ~/helper/tokens | ||
| 4 | |||
| 5 | cat $1 && exit 0 | ||
| 6 | ls -l && exit 1 | ||