Skip to content
Song Zheng edited this page Dec 11, 2022 · 2 revisions

Bash scripts

# Productivity Alias
alias .="ls"
alias ..="cd .."
alias tls="tmux ls"

# https://ostechnix.com/bash-tips-how-to-cd-and-ls-in-one-command/
# ld path will run cd and ls
ld() {
  local dir="$1"
  local dir="${dir:=$HOME}"
  if [[ -d "$dir" ]]; then
    cd "$dir" >/dev/null; ls --color=auto
  else
    echo "bash: cdls: $dir: Directory not found"
  fi
}

System Setup

Tutorials

Clone this wiki locally