From 4dbfde2f1b2d0ace200ecd7ec6f13f981ee7ae86 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 30 Aug 2022 17:48:01 +0300 Subject: Removed cdcomb from zshrc --- .zshrc | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 242c91f..35f631b 100644 --- a/.zshrc +++ b/.zshrc @@ -129,7 +129,7 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an fi # }}} - if [[ device != "server" ]]; then + if [[ $device != "server" ]]; then # General commands {{{ if [[ -x "$(command -v exa)" ]]; then @@ -146,9 +146,9 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an alias q="exit" alias x="exit" - alias cdg="cdcomb ~/Programming/GitHub-repos/" - alias cdl="cdcomb ~/Programming/GitLab-repos/" - alias cds="cdcomb ~/Programming/source/" + alias cdg="cd ~/Programming/GitHub-repos/ && cd" + alias cdl="cd ~/Programming/GitLab-repos/ && cd" + alias cds="cd ~/Programming/source/ && cd" # }}} # Application specific {{{ @@ -187,15 +187,7 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an bgr $@ } - if [[ device != "server" ]]; then - cdcomb () { - dir="$1" - if ! [ -z "$2" ]; then dir="$1$2" fi - cd "$dir" - } - fi - - if [[ device != "server" && device != "android" ]]; then + if [[ $device == "desktop" ]]; then if [[ -x "$(command -v vim)" ]]; then # Open vim with .vim-session file, if it exists and the vim command doesn't have any parameters -- cgit v1.2.3