Update train.jsonl
Browse files- train.jsonl +31 -1
train.jsonl
CHANGED
|
@@ -36,4 +36,34 @@
|
|
| 36 |
{"prompt": "[zsh] Write a Zsh one-liner to count how many .txt files are in the current directory.", "response": "print -l *.txt(N) | wc -l"}
|
| 37 |
{"prompt": "[zsh] How do I enable case-insensitive tab completion in Zsh?", "response": "autoload -Uz compinit && compinit && zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'"}
|
| 38 |
{"prompt": "[zsh] How can I run a command in the background so it keeps running even if I close the terminal?", "response": "nohup ./server.sh > output.log 2>&1 &"}
|
| 39 |
-
{"prompt": "[zsh] How do I print all currently set environment variables sorted alphabetically?", "response": "env | sort"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
{"prompt": "[zsh] Write a Zsh one-liner to count how many .txt files are in the current directory.", "response": "print -l *.txt(N) | wc -l"}
|
| 37 |
{"prompt": "[zsh] How do I enable case-insensitive tab completion in Zsh?", "response": "autoload -Uz compinit && compinit && zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'"}
|
| 38 |
{"prompt": "[zsh] How can I run a command in the background so it keeps running even if I close the terminal?", "response": "nohup ./server.sh > output.log 2>&1 &"}
|
| 39 |
+
{"prompt": "[zsh] How do I print all currently set environment variables sorted alphabetically?", "response": "env | sort"}
|
| 40 |
+
{"prompt": "[fish] How do I set a global exported environment variable in Fish?", "response": "set -gx EDITOR nvim"}
|
| 41 |
+
{"prompt": "[fish] How do I permanently add a directory to my PATH in Fish?", "response": "fish_add_path ~/.local/bin"}
|
| 42 |
+
{"prompt": "[fish] Write a Fish one-liner to check if a command exists before running it.", "response": "command -q jq; and jq '.' data.json; or echo \"jq not found\""}
|
| 43 |
+
{"prompt": "[fish] How do I create a permanent alias for 'git status' in Fish?", "response": "alias -s gs 'git status'"}
|
| 44 |
+
{"prompt": "[fish] Write a Fish loop to rename all .jpeg files to .jpg in the current directory.", "response": "for f in *.jpeg; mv $f (string replace -r '\\.jpeg$' '.jpg' $f); end"}
|
| 45 |
+
{"prompt": "[fish] How do I split a comma-separated string into a list in Fish?", "response": "set arr (string split ',' 'apple,banana,cherry'); printf '%s\\n' $arr"}
|
| 46 |
+
{"prompt": "[fish] How do I convert a variable's value to uppercase and lowercase in Fish?", "response": "set text 'Hello Fish'; echo (string upper $text) (string lower $text)"}
|
| 47 |
+
{"prompt": "[fish] Write a Fish command to read non-empty lines from config.txt into a list.", "response": "set lines (string match -r '.+' < config.txt)"}
|
| 48 |
+
{"prompt": "[fish] How do I run a command substitution inside a string in Fish?", "response": "echo \"Current kernel: \"(uname -r)"}
|
| 49 |
+
{"prompt": "[fish] Write a Fish one-liner to check the exit status of the last command.", "response": "echo $status"}
|
| 50 |
+
{"prompt": "[fish] How do I perform floating-point arithmetic in Fish?", "response": "math '15 / 4'"}
|
| 51 |
+
{"prompt": "[fish] Write a Fish command to search my command history for anything containing 'docker'.", "response": "history search --contains docker"}
|
| 52 |
+
{"prompt": "[fish] How do I clear all saved command history in Fish?", "response": "history clear"}
|
| 53 |
+
{"prompt": "[fish] How do I define and save a custom function permanently in Fish?", "response": "function mkcd; mkdir -p $argv[1]; and cd $argv[1]; end; funcsave mkcd"}
|
| 54 |
+
{"prompt": "[fish] Write a Fish snippet to iterate over all arguments passed to a function.", "response": "for arg in $argv; echo \"Arg: $arg\"; end"}
|
| 55 |
+
{"prompt": "[fish] How do I list all currently set universal variables in Fish?", "response": "set -U"}
|
| 56 |
+
{"prompt": "[fish] Write a Fish command to erase a universal variable named MY_TOKEN.", "response": "set -eU MY_TOKEN"}
|
| 57 |
+
{"prompt": "[fish] How do I reload my Fish configuration file without restarting the terminal?", "response": "source ~/.config/fish/config.fish"}
|
| 58 |
+
{"prompt": "[fish] Write a Fish one-liner to find and delete all .tmp files recursively.", "response": "find . -type f -name '*.tmp' -delete"}
|
| 59 |
+
{"prompt": "[fish] How do I measure the execution time of a command in Fish?", "response": "time sleep 2"}
|
| 60 |
+
{"prompt": "[fish] Write a Fish command to list all files including hidden ones.", "response": "ls -la"}
|
| 61 |
+
{"prompt": "[fish] How do I find out which process is listening on port 8080 in Linux?", "response": "ss -tulpn | grep :8080"}
|
| 62 |
+
{"prompt": "[fish] Write a Fish one-liner to extract a .tar.gz archive into a specific folder.", "response": "mkdir -p out; and tar -xzf archive.tar.gz -C out"}
|
| 63 |
+
{"prompt": "[fish] How do I count how many .rs files exist recursively in the current project?", "response": "count **.rs"}
|
| 64 |
+
{"prompt": "[fish] Write a Fish command to replace 'foo' with 'bar' in config.txt in place.", "response": "sed -i 's/foo/bar/g' config.txt"}
|
| 65 |
+
{"prompt": "[fish] How do I open the Fish web-based configuration interface?", "response": "fish_config"}
|
| 66 |
+
{"prompt": "[fish] Write a Fish one-liner to run a command in the background detached from the terminal.", "response": "nohup ./server.sh > output.log 2>&1 &; disown"}
|
| 67 |
+
{"prompt": "[fish] How do I print all environment variables sorted alphabetically in Fish?", "response": "env | sort"}
|
| 68 |
+
{"prompt": "[fish] Write a Fish conditional to check if a file named .env exists before sourcing it.", "response": "test -f .env; and source .env"}
|
| 69 |
+
{"prompt": "[fish] How do I trim leading and trailing whitespace from a variable in Fish?", "response": "set clean (string trim ' hello world ')"}
|