Skip to content
Permalink
Browse files

Improve aliases

  • Loading branch information...
mjsteinbaugh committed Sep 5, 2019
1 parent 36d9522 commit 766d79ce29d0632fb2d93b2951643f8852c3e2b9
Showing with 44 additions and 11 deletions.
  1. +3 −1 activate
  2. +40 −7 system/activate/aliases.sh
  3. +1 −3 system/activate/os/darwin/aliases.sh
@@ -368,6 +368,8 @@ then
then
# shellcheck source=/dev/null
source "${zsh_dir}/oh-my-zsh.sh"
# shellcheck source=/dev/null
source "${zsh_dir}/autojump.sh"
fi
# shellcheck source=/dev/null
source "${zsh_dir}/prompt.sh"
@@ -387,7 +389,7 @@ then
# shellcheck source=/dev/null
. "${activate_dir}/ssh-key.sh"
# shellcheck source=/dev/null
# > . "${activate_dir}/umask.sh"
. "${activate_dir}/umask.sh"

# Platform-specific configuration.
if _koopa_is_darwin
@@ -1,7 +1,13 @@
#!/bin/sh

# Aliases.
# Updated 2019-08-14.
# Aliases
# Updated 2019-09-05.

# See also:
# - https://github.com/MikeMcQuaid/dotfiles
# - https://github.com/stephenturner/oneliners

# Run `alias` in terminal to list current definitions.



@@ -10,11 +16,10 @@

# > alias be="noglob bundle exec"
# > alias gist="gist --open --copy"
# > alias ls="ls -Fhlo --color"
# > alias make="nice make"
# > alias rake="noglob rake"
# > alias rg="rg --colors 'match:style:nobold' --colors 'path:style:nobold'"
# > alias rsync="rsync --partial --progress --human-readable --compress"
# > alias rsync="rsync --compress --human-readable --partial --progress"
# > alias zmv="noglob zmv -vW"


@@ -78,10 +83,28 @@ fi
# File system navigation {{{1
# ==============================================================================

# Browse up and down.
alias u="clear; cd ../; pwd; ls"
alias d="clear; cd -; ls"

# Navigate up parent directories without `cd`.
# These are also supported by autojump.
# > alias ..="cd .."
# > alias ...="cd ../../"
# > alias ....="cd ../../../"
# > alias .....="cd ../../../../"
# > alias ......="cd ../../../../../"

# Listing files.
alias la="ls -a"
alias lF="ls -F"
alias ll="ls -AFGlh"
alias ls="ls --color=auto"
alias l1="ls -1p"
alias l.="ls -Fd .*"
alias l="ls -AGghlo"
alias la="ls -Ahl"
alias ll="ls -hl"

alias lhead="l | head"
alias ltail="l | tail"

# Set more sensible defaults for size commands.
alias df="df -H"
@@ -92,6 +115,16 @@ alias less="less --ignore-case --raw-control-chars"




# File compression {{{1
# ==============================================================================

# Pack and unpack tar.gz files.
alias tarup="tar -czvf"
alias tardown="tar -xzvf"



# Programs {{{1
# ==============================================================================

@@ -1,7 +1,7 @@
#!/bin/sh

# Aliases
# Updated 2019-06-17.
# Updated 2019-09-05.

alias autofs="sudo automount -vc"
alias finder-hide="setfile -a V"
@@ -15,6 +15,4 @@ alias rstudio="open -a rstudio"
if _koopa_quiet_which exa
then
alias ls="exa -Fg"
else
alias ls="ls -F"
fi

0 comments on commit 766d79c

Please sign in to comment.
You can’t perform that action at this time.