diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-05 17:25:41 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-05 17:25:41 +0100 |
commit | 4fc0bc90f06b158b0b46b9dcdef30c5f13495d84 (patch) | |
tree | 1c6bf3908359592e5802b85bcc4ac83b36dec18d | |
parent | vim indent fix (diff) | |
download | dotfiles-bsd-4fc0bc90f06b158b0b46b9dcdef30c5f13495d84.tar.gz dotfiles-bsd-4fc0bc90f06b158b0b46b9dcdef30c5f13495d84.tar.bz2 dotfiles-bsd-4fc0bc90f06b158b0b46b9dcdef30c5f13495d84.tar.xz dotfiles-bsd-4fc0bc90f06b158b0b46b9dcdef30c5f13495d84.tar.zst dotfiles-bsd-4fc0bc90f06b158b0b46b9dcdef30c5f13495d84.zip |
Aliases update
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/settings.vim | 1 | ||||
-rw-r--r-- | .config/zsh/alias.zsh | 37 |
2 files changed, 35 insertions, 3 deletions
diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim index 1826e2e..74c5678 100644 --- a/.config/nvim/settings.vim +++ b/.config/nvim/settings.vim @@ -1,3 +1,4 @@ +set noautochdir set bg=dark set clipboard^=unnamedplus set cursorline diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index aecf6cc..568aacc 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -48,11 +48,42 @@ alias stopdocker='docker-machine stop docker-home' alias envdocker='eval `docker-machine env docker-home`' alias vimz='nvim $(fzf)' alias v='nvim $(fzf)' -alias pa='cd $HOME/.local/packs && ls' -alias co='cd $XDG_CONFIG_HOME/ && ls' +pa() { + if [ "$1" ]; then + if cd "$HOME"/.local/packs/"$1"; then + ls + else + cd "$HOME"/.local/packs && ls + fi + else + cd "$HOME"/.local/packs && ls + fi +} +co() { + if [ "$1" ]; then + if cd "$XDG_CONFIG_HOME"/"$1"; then + ls + else + cd "$XDG_CONFIG_HOME" && ls + fi + else + cd "$XDG_CONFIG_HOME" && ls + fi +} +da() { + if [ "$1" ]; then + if cd "$XDG_DATA_HOME"/"$1"; then + ls + else + cd "$XDG_DATA_HOME" && ls + fi + else + cd "$XDG_DATA_HOME" && ls + fi +} alias bi='cd $HOME/.local/bin && ls' twi() { - mpview https://twitch.tv/$1; + mpview https://twitch.tv/"$1"; } alias nb='newsboat' alias mutt='neomutt' |