cswimr/home
Archived
Template
1
0
Fork 0

made the aliases for nano, vim, and vi invoke ${EDITOR} instead of nvim

Signed-off-by: cswimr <seaswimmerthefsh@gmail.com>
This commit is contained in:
Seaswimmer 2024-10-07 12:03:35 -04:00
parent 2fff0818f6
commit bd8cbd94ca
Signed by: cswimr
GPG key ID: A9C162E867C851FA
2 changed files with 10 additions and 10 deletions

View file

@ -2,14 +2,14 @@ alias f="$(pay-respects zsh)"
alias wtf="navi"
alias help="navi"
alias rzsh="source ~/.zshrc && echo 'Successfully reloaded zsh!'"
alias aliases="nvim $ZSH_CUSTOM/aliases.zsh && rzsh"
alias zshrc="nvim ~/.zshrc && rzsh"
alias aliases="${EDITOR} $ZSH_CUSTOM/aliases.zsh && rzsh"
alias zshrc="${EDITOR} ~/.zshrc && rzsh"
alias zshconfig="zshrc"
alias zshcustom="nvim $ZSH_CUSTOM && rzsh"
alias ohmyzsh="nvim ~/.oh-my-zsh && rzsh"
alias vi="nvim"
alias vim="nvim"
alias nano="nvim"
alias zshcustom="${EDITOR} $ZSH_CUSTOM && rzsh"
alias ohmyzsh="${EDITOR} ~/.oh-my-zsh && rzsh"
alias vi="${EDITOR}"
alias vim="${EDITOR}"
alias nano="${EDITOR}"
alias neofetch="fastfetch"
alias nf="fastfetch"
alias ff="fastfetch"

View file

@ -16,10 +16,10 @@ git submodules update --recursive
## Notes
- `.zshc/aliases.sh` contains aliases for `nano`, `vim`, and `vi`, that invoke `nvim`. If you use any of these editors, you may want to change these aliases before reloading your shell.
- `.zshc/aliases.sh` contains aliases for `nano`, `vim`, and `vi`, that invoke `${EDITOR}`. If you use multiple of these editors, you may want to change these aliases before reloading your shell.
- `.zshc/aliases.sh` contains an alias for `htop`, that invokes `btop`. If you do not have `btop`, either install it or remove this alias.
- `.zshc/aliases.sh` contains an alias for `clip`, that invokes `xsel -ib`. If you do not use X11, you may want to remove or modify this alias.
- `.zshc/aliases.sh` contains an alias for `clip`, that invokes `xsel -ib` or `wl-copy`. If you do not use X11 or Wayland, you may want to remove or modify this alias.
- `.zshc/aliases.sh` contains an alias for `driver` and `gpu` that invoke `nvidia-smi` and `sudo nvidia-settings` respectively. If you do not have an NVIDIA GPU, you may want to remove or modify these aliases.
- If you are not an Arch Linux user, you will want to change the following things:
- `.zshc/aliases.sh`: Remove the `aur` alias.
- `.zshrc`: Replace the `archlinux` plugin with the [oh-my-zsh plugin(s) for your distrubtion](https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins-Overview#distro-related).
- `.zshrc`: Replace the `archlinux` plugin with the [oh-my-zsh plugin(s) for your distribution](https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins-Overview#distro-related).