feat: winip as script instead of fish function

This commit is contained in:
Klesh Wong 2021-11-07 14:39:19 +08:00
parent 2a5bd8f6b5
commit 6400fabbec
3 changed files with 3 additions and 4 deletions

3
bin/winip Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g'

View File

@ -72,7 +72,6 @@ lnsf "$DIR/fish/functions/f.fish" "$XDG_CONFIG_HOME/fish/functions/f.fish"
lnsf "$DIR/fish/functions/append_paths.fish" "$XDG_CONFIG_HOME/fish/functions/append_paths.fish" lnsf "$DIR/fish/functions/append_paths.fish" "$XDG_CONFIG_HOME/fish/functions/append_paths.fish"
lnsf "$DIR/fish/functions/source_files.fish" "$XDG_CONFIG_HOME/fish/functions/source_files.fish" lnsf "$DIR/fish/functions/source_files.fish" "$XDG_CONFIG_HOME/fish/functions/source_files.fish"
lnsf "$DIR/fish/functions/git_clone_all.fish" "$XDG_CONFIG_HOME/fish/functions/git_clone_all.fish" lnsf "$DIR/fish/functions/git_clone_all.fish" "$XDG_CONFIG_HOME/fish/functions/git_clone_all.fish"
lnsf "$DIR/fish/functions/winip.fish" "$XDG_CONFIG_HOME/fish/functions/winip.fish"
# install plugins # install plugins
# for better keybinding: C-o open file with $EDITOR / C-r search history / C-g open with xdg-open # for better keybinding: C-o open file with $EDITOR / C-r search history / C-g open with xdg-open

View File

@ -1,3 +0,0 @@
function winip
grep nameserver /etc/resolv.conf | awk '{print $2}'
end