diff --git a/.zshc/aliases.zsh b/.zshc/aliases.zsh index d730218..e68303c 100755 --- a/.zshc/aliases.zsh +++ b/.zshc/aliases.zsh @@ -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" diff --git a/README.md b/README.md index 09b55af..1c71702 100644 --- a/README.md +++ b/README.md @@ -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).