diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-06 08:25:12 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-06 08:25:12 +0800 |
| commit | a6061b61fa52b5c810c4214cc0682f4b21f1592c (patch) | |
| tree | 1429ad3771a0387fc2fe073aa5ea19a68e6020dd | |
| parent | 69b2b3532b22898c7df8c5ee43a98d095bab67c2 (diff) | |
Update
| -rw-r--r-- | alias | 7 | ||||
| -rw-r--r-- | misc/vconsole.conf | 2 | ||||
| -rwxr-xr-x | profile (renamed from profile.sh) | 0 |
3 files changed, 8 insertions, 1 deletions
| @@ -564,3 +564,10 @@ vvv() { | |||
| 564 | echo "restarting vim..."; | 564 | echo "restarting vim..."; |
| 565 | done | 565 | done |
| 566 | } | 566 | } |
| 567 | |||
| 568 | ip.neigh() { | ||
| 569 | INTERFACES=$(ifconfig | sed -nE 's/^([^ :]+).*$/\1/p') | ||
| 570 | test -z "$1" && echo $INTERFACES && return 0 | ||
| 571 | |||
| 572 | ifconfig | sed -nE "/^${1}/,/^$/ s/^ +inet ([0-9.]+) .*$/\1/p" | ||
| 573 | } | ||
diff --git a/misc/vconsole.conf b/misc/vconsole.conf index cc8f224..8a1e7e7 100644 --- a/misc/vconsole.conf +++ b/misc/vconsole.conf | |||
| @@ -1,2 +1,2 @@ | |||
| 1 | KEYMAP=/home/pham/helper/misc/keymap | 1 | KEYMAP=/usr/share/kbd/keymaps/i386/qwerty/us.map |
| 2 | FONT=ter-218b | 2 | FONT=ter-218b |