Compare commits
3 Commits
f1575749c3
...
a2acf44f91
| Author | SHA1 | Date | |
|---|---|---|---|
| a2acf44f91 | |||
| f69d4376d1 | |||
| d61d877464 |
@@ -34,6 +34,10 @@ alias chgrp='chgrp --preserve-root'
|
||||
|
||||
## apps
|
||||
alias g='git'
|
||||
# enable tab completion for 'g' by marking as alias for 'git'
|
||||
if type _git &> /dev/null; then
|
||||
complete -o default -o nospace -F _git g;
|
||||
fi
|
||||
|
||||
alias bat='batcat'
|
||||
alias bathelp='bat --plain --language=help'
|
||||
@@ -42,13 +46,13 @@ help() {
|
||||
}
|
||||
|
||||
## text editing
|
||||
alias edit="emacs $1"
|
||||
alias sedit="sudo emacs $1"
|
||||
alias edit="emacs"
|
||||
alias sedit="sudo emacs"
|
||||
|
||||
## ls helpers
|
||||
alias l="ls -lFh --color"
|
||||
alias la="ls -AF --color" # exclude . and ..
|
||||
alias lsd="ls -F --color | grep --color=never '^d'" # only directories
|
||||
alias lsd="ls -lFh --color | grep --color=never '^d'" # only directories
|
||||
alias ls="command ls --color" # always color
|
||||
alias ll="ls -AlFh --color"
|
||||
|
||||
|
||||
@@ -28,8 +28,3 @@ shopt -s nocaseglob; # case-insensitive globbing
|
||||
shopt -s histappend; # append to bash history file
|
||||
shopt -s cdspell; # autocorrect typos in path names when cd'ing
|
||||
shopt -s checkwinsize # update col/line values on each command
|
||||
|
||||
# enable tab completion for 'g' by marking as alias for 'git'
|
||||
if type _git &> /dev/null; then
|
||||
complete -o default -o nospace -F _git g;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user