forked from colonelpanic/dotfiles
Refactor some stuff.
This commit is contained in:
Submodule dotfiles/emacs.d updated: e2f272b4e1...32aa532c7e
@@ -1 +0,0 @@
|
||||
alias sourcefile_abspath='$(readlink -f "$BASH_SOURCE" | xargs dirname)'
|
@@ -19,16 +19,16 @@ function current_directory() {
|
||||
}
|
||||
|
||||
function git_prompt_info() {
|
||||
if test -z $(parse_git_branch);
|
||||
if test -z $(git branch-or-sha);
|
||||
then
|
||||
echo ""
|
||||
else
|
||||
echo " on $(parse_git_branch)$(git_status_character)"
|
||||
echo " on $(git branch-or-sha)$(git_status_character)"
|
||||
fi
|
||||
}
|
||||
|
||||
function git_status_character() {
|
||||
if git_is_dirty;
|
||||
if git dirty;
|
||||
then
|
||||
echo "✘"
|
||||
else
|
||||
|
@@ -1,3 +1,4 @@
|
||||
|
||||
alias emacs="emacsclient -t"
|
||||
alias tmux="tmux -2"
|
||||
alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
|
||||
@@ -6,7 +7,6 @@ alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
|
||||
|
||||
# enables the sudoing of aliases.
|
||||
alias sudo='sudo '
|
||||
alias get_absolute_directory=
|
||||
|
||||
# Detect which `ls` flavor is in use
|
||||
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
||||
|
Reference in New Issue
Block a user