diff options
| author | Syndamia <kamen@syndamia.com> | 2022-08-30 17:48:01 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2022-08-30 17:48:01 +0300 |
| commit | 4dbfde2f1b2d0ace200ecd7ec6f13f981ee7ae86 (patch) | |
| tree | 3e944390345c265b60a5187dea169cac30829466 | |
| parent | 2c43346d82e83411f63ce8ef3d1b14731b80c43e (diff) | |
| download | dotfiles-4dbfde2f1b2d0ace200ecd7ec6f13f981ee7ae86.tar dotfiles-4dbfde2f1b2d0ace200ecd7ec6f13f981ee7ae86.tar.gz dotfiles-4dbfde2f1b2d0ace200ecd7ec6f13f981ee7ae86.zip | |
Removed cdcomb from zshrc
| -rw-r--r-- | .zshrc | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -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 |
