This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sf [s]earch [f]iles command (sf) | |
# this will use the output of the fzf command to open the file in nvim. You can | |
# - change the editor launch command to whatever you want. | |
# - see: https://github.com/junegunn/fzf | |
# - see: https://github.com/sharkdp/bat | |
function sf { | |
$file = fzf --preview "bat --color=always {}" --preview-window=right:50%:wrap --height 50% --border --prompt="Search Files: " --query="$args" | |
if ($file) { | |
nvim $file # or with your editor of choice | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ABOUT ------------------------------------------------------------------------ | |
# ------------------------------------------------------------------------------ | |
# AUTHOR: Frosthaven | |
# DISCORD: frosthaven | |
# DESCRIPTION: This is a powershell script that accomplishes the following: | |
# 1. Launches a process | |
# 2. Sets the affinity of the process to include or exclude specific cpu cores | |
# 3. Optionally monitors the process for hangs and kills it if it hangs | |
# 4. Optionally restarts the process if it hangs |