added ability to edit current zsh command in editor.
This commit is contained in:
parent
daa85d3277
commit
4925296194
3 changed files with 5 additions and 6 deletions
|
|
@ -28,9 +28,6 @@ alias la = ls -a
|
||||||
alias ll = ls -l
|
alias ll = ls -l
|
||||||
alias lla = ls -la
|
alias lla = ls -la
|
||||||
alias pyactivate = overlay use ./.venv/bin/activate.nu
|
alias pyactivate = overlay use ./.venv/bin/activate.nu
|
||||||
alias tmux = tmux -u
|
|
||||||
# converts all .doc and .docx files in the local directory to pdfs using libreoffice
|
|
||||||
alias doc2pdf = loffice --convert-to pdf --headless *.docx
|
|
||||||
#common options for sshfs
|
#common options for sshfs
|
||||||
alias sshmnt = sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15
|
alias sshmnt = sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,15 +42,16 @@
|
||||||
# Turn off terminal beep on autocomplete.
|
# Turn off terminal beep on autocomplete.
|
||||||
unsetopt BEEP
|
unsetopt BEEP
|
||||||
|
|
||||||
|
#edit command line in editor with v
|
||||||
|
autoload edit-command-line; zle -N edit-command-line
|
||||||
|
bindkey -M vicmd v edit-command-line
|
||||||
|
|
||||||
#cheat.sh is a wonderful tool, the less typing needed the better.
|
#cheat.sh is a wonderful tool, the less typing needed the better.
|
||||||
cheat(){
|
cheat(){
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
curl cheat.sh/"$i"
|
curl cheat.sh/"$i"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#the tre command has some shell integration.
|
|
||||||
tre() { command tre "$@" --editor && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
|
|
||||||
tred() { command tre "$@" --editor=z --directories && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
|
|
||||||
|
|
||||||
#moves a file, leaving a symlink in its place.
|
#moves a file, leaving a symlink in its place.
|
||||||
mvln(){
|
mvln(){
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
myLib,
|
myLib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
# rockpro64 home arm64 server, serves as adblocker among other things.
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs myLib;};
|
specialArgs = {inherit inputs myLib;};
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue