Skip to content

Commit

Permalink
added unset & flushdns commands
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Sieradski <[email protected]>
  • Loading branch information
selfagency committed Feb 14, 2016
1 parent 8edfede commit 943fa45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ Inspired by the [oh-my-zsh][original-plugin]’s plugin of same name by
functions:

- `cdf` - `cd` to the current Finder directory
- `itunes` - Controle iTunes. Play, pause, stop, resume, etc.
- `flushdns` - Flushes the DNS cache for Yosemite and El Capitan
- `itunes` - Control iTunes: Play, pause, stop, resume, etc.
- `manp` - Open a specified man page in Preview
- `pfd` - Return the path of the frontmost Finder window
- `pfs` - Return the current Finder selection
- `pushdf` - `pushd` to the current Finder directory
- `ql` - Quick Look a specified file or directory
- `showhidden` - Shows hidden files and folders in Finder
- `trash` - Move a specified file to the Trash
- `unset` - Emulates the `unset` command to unset an environment variable
- `updatedb` - Updates locate command database

> *Note*: the `tab` function was dropped in favor a more robust [plugin-tab].
Expand Down
3 changes: 3 additions & 0 deletions flushdns.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function flushdns -d "Flushes OS X DNS cache"
sudo killall -HUP mDNSResponder
end
3 changes: 3 additions & 0 deletions unset.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function unset
set --erase $argv
end

0 comments on commit 943fa45

Please sign in to comment.