summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc18
1 files changed, 5 insertions, 13 deletions
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