11# shellcheck shell=bash
2+ # shellcheck source-path=SCRIPTDIR
23about-alias ' general aliases'
34
4- if command ls --color -d . & > /dev/null; then
5- alias ls=' ls --color=auto'
6- # BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set.
7- fi
8-
9- # List directory contents
10- alias sl=ls
11- alias la=' ls -AF' # Compact view, show hidden
12- alias ll=' ls -al'
13- alias l=' ls -a'
14- alias l1=' ls -1'
15- alias lf=' ls -F'
16-
175alias _=' sudo'
186
19- # Shortcuts to edit startup files
20- alias vbrc=' ${VISUAL:-vim} ~/.bashrc'
21- alias vbpf=' ${VISUAL:-vim} ~/.bash_profile'
22-
237# colored grep
248# Need to check an existing file for a pattern that will be found to ensure
259# that the check works when on an OS that supports the color option
@@ -39,23 +23,24 @@ alias pager='${PAGER:=less}'
3923
4024alias q=' exit'
4125
42- alias irc=' ${IRC_CLIENT:= irc}'
26+ alias irc=' ${IRC_CLIENT:- irc}'
4327
4428# Language aliases
4529alias rb=' ruby'
4630alias py=' python'
4731alias ipy=' ipython'
4832
4933# Pianobar can be found here: http://github.com/PromyLOPh/pianobar/
34+ if _command_exists pianobar; then
35+ alias piano=' pianobar'
36+ fi
5037
51- alias piano=' pianobar'
52-
53- alias ..=' cd ..' # Go up one directory
54- alias cd..=' cd ..' # Common misspelling for going up one directory
55- alias ...=' cd ../..' # Go up two directories
56- alias ....=' cd ../../..' # Go up three directories
57- alias -- -=' cd -' # Go back
58- alias dow=' cd /home/$USER/Downloads' # Go to the Downloads directory
38+ alias ..=' cd ..' # Go up one directory
39+ alias cd..=' cd ..' # Common misspelling for going up one directory
40+ alias ...=' cd ../..' # Go up two directories
41+ alias ....=' cd ../../..' # Go up three directories
42+ alias -- -=' cd -' # Go back
43+ alias dow=' cd $HOME/Downloads' # Go to the Downloads directory
5944
6045# Shell History
6146alias h=' history'
@@ -92,5 +77,6 @@ function catt() {
9277# aliases and enable just the ones for Bash-it explicitly:
9378# bash-it disable alias general
9479# bash-it enable alias bash-it
95- # shellcheck source-path=SCRIPTDIR
9680source " $BASH_IT /aliases/available/bash-it.aliases.bash"
81+ source " $BASH_IT /aliases/available/directory.aliases.bash"
82+ source " $BASH_IT /aliases/available/editor.aliases.bash"
0 commit comments