diff options
| author | Syndamia <kamen@syndamia.com> | 2022-09-08 08:36:50 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2022-09-08 08:36:50 +0300 |
| commit | a1e6124c582797e2040856df7a3da9bde3df8fe3 (patch) | |
| tree | d0e68be3fce9bb45acf29eb4f2f11d5914543fa2 | |
| parent | 0131ee94d187dcc87a3243fd1a98afe3fba1b4d2 (diff) | |
| download | dotfiles-a1e6124c582797e2040856df7a3da9bde3df8fe3.tar dotfiles-a1e6124c582797e2040856df7a3da9bde3df8fe3.tar.gz dotfiles-a1e6124c582797e2040856df7a3da9bde3df8fe3.zip | |
Made some alises vailable to server config and fixed cdl, cdg, cds aliases going to home folder when there is no input
| -rw-r--r-- | .zshrc | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -153,8 +153,12 @@ device='desktop' # can be either "desktop" (default when empty), "server" or "an # }}} # General commands {{{ + + alias q="exit" + alias x="exit" + if [[ $device != "server" ]]; then - + if [[ -x "$(command -v exa)" ]]; then alias ll="exa --icons --group-directories-first --git --time-style long-iso -a -labh" alias lk="exa --icons --group-directories-first --git --time-style long-iso -labhTL" @@ -166,15 +170,18 @@ device='desktop' # can be either "desktop" (default when empty), "server" or "an alias l="ls -CF" fi - alias q="exit" - alias x="exit" - - alias cdg="cd ~/Programming/GitHub-repos/ && cd" - alias cdl="cd ~/Programming/GitLab-repos/ && cd" - alias cds="cd ~/Programming/source/ && cd" + alias cdg="cd ~/Programming/GitHub-repos/ && nbcd" + alias cdl="cd ~/Programming/GitLab-repos/ && nbcd" + alias cds="cd ~/Programming/source/ && nbcd" + nbcd() { # Non blanc cd + [ -n "$1" ] && cd "$1" || return 0 + } else alias wudo="sudo -u www-data" + alias ll="la -alF" + alias la="ls -A" + alias l="ls -CF" fi # }}} |
