feat: winip as script instead of fish function
This commit is contained in:
parent
2a5bd8f6b5
commit
6400fabbec
3
bin/winip
Executable file
3
bin/winip
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ipconfig.exe | grep 'vEthernet (WSL)' -A4 | cut -d":" -f 2 | tail -n1 | sed -e 's/\s*//g'
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
function winip
|
|
||||||
grep nameserver /etc/resolv.conf | awk '{print $2}'
|
|
||||||
end
|
|
Loading…
Reference in New Issue
Block a user