diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-07-01 15:45:59 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-07-01 15:45:59 +0200 |
| commit | 2535633569aa4b9f692c190894e2146484ac478c (patch) | |
| tree | c32cd753389bab573301c939fb6911b200ff5c0d /config/zsh | |
| parent | c6b4fa4741c5559abd2f8e569d8ce91c402406c2 (diff) | |
| download | dotfiles-2535633569aa4b9f692c190894e2146484ac478c.tar.gz dotfiles-2535633569aa4b9f692c190894e2146484ac478c.tar.bz2 dotfiles-2535633569aa4b9f692c190894e2146484ac478c.zip | |
Added vim spell checker toggle, Updated vim goyo width, removing ~/git/dotfiles prefix in rc alias
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/aliases.zsh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 79df09b..447380b 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -122,8 +122,12 @@ pacman_url() { pacman -Si "$1" | grep URL | tr -s ' ' | cut -d ' ' -f 3 ; } alias filter-valgrind="sed -e 's/==[0-9]*==/==/' -e 's/0x[0-9A-F]*//'" rc() { - filepath="$(find "$HOME/git/dotfiles" -type f -not -path '*.git/*' | fzf)" && - "$EDITOR" "$filepath" + dir="$HOME/git/dotfiles/" + filepath="$( + find "$dir" -type f -not -path '*.git/*' | + sed "s:$dir::" | + fzf + )" && "$EDITOR" "$dir$filepath" filename="$(basename "$filepath")" case "$filename" in .zshrc|aliases.zsh) |
