From: Jer Noble Date: Fri, 29 May 2020 16:20:40 +0000 (-0700) Subject: Update zsh aliases and settings X-Git-Url: http://id.pley.net/dotfiles.git/commitdiff_plain/98aab03bace961139f1be01c3ce8a30298f87d3a?ds=sidebyside;hp=f8531f5dddb42827b6935c3a70561c9216e07e46 Update zsh aliases and settings --- diff --git a/zsh_aliases b/zsh_aliases index 4338eef..05e1a10 100644 --- a/zsh_aliases +++ b/zsh_aliases @@ -22,6 +22,7 @@ alias p='ps -au' alias tf='tail -25f' alias l='ls -lF' alias la='ls -laF' +alias less='less -R' alias clr='clear' alias cls='clear' alias d='date' @@ -85,3 +86,5 @@ function canonicalize() { echo $(cd $relpath; pwd -P)/$(basename $1) return 0 } + +function sayStatus () { local _status=$?; if [[ $_status -eq 0 ]]; then say "Success"; else say "Failed"; fi; return $_status } diff --git a/zsh_login b/zsh_login index 8f4f2fb..8318680 100644 --- a/zsh_login +++ b/zsh_login @@ -29,12 +29,13 @@ __git_files () { } setopt PROMPT_SUBST -setopt INC_APPEND_HISTORY setopt SHARE_HISTORY setopt extended_glob +setopt AUTO_CD +setopt DVORAK PS1=$'%(?.😊.😡) %(1v.%1v .)%n@%m:%(3~,.../,)%2~> ' -PATH=~/bin:$PATH +PATH=~/bin:$PATH:~/homebrew/bin: if [[ -d ~/homebrew/bin ]]; then PATH=$PATH:~/homebrew/bin diff --git a/zsh_webkit_login b/zsh_webkit_login index 08bb408..dfa4dfe 100644 --- a/zsh_webkit_login +++ b/zsh_webkit_login @@ -1,10 +1,9 @@ -#/bin/zsh +#!/bin/zsh switchto() { export OLD_WEBKIT_DIR=$WEBKIT_DIR export WEBKIT_DIR=~/Projects/WebKit.$1 - export WEBKIT_OUTPUTDIR=$WEBKIT_DIR/OpenSource/WebKitBuild - export PERP_BUILD_PATH=$WEBKIT_OUTPUTDIR + export PERP_BUILD_PATH=$WEBKIT_DIR/OpenSource/WebKitBuild if [[ "$OLD_WEBKIT_DIR" == "" ]]; then export PATH=$PATH:$WEBKIT_DIR/Internal/Tools/Scripts:$WEBKIT_DIR/OpenSource/Tools:$WEBKIT_DIR/OpenSource/Tools/Scripts export CDPATH=$CDPATH:$WEBKIT_DIR/OpenSource:$WEBKIT_DIR/OpenSource/Source:$WEBKIT_DIR/Internal @@ -23,10 +22,12 @@ _switchto() { _arguments '1:dir:_webkit_dirs' } compdef _switchto switchto -if [[ $( has subl ) == 'yes' ]]; then +if [[ $( has sedit ) == 'yes' ]]; then + export GUI_EDITOR="sedit -w" +elif [[ $( has subl ) == 'yes' ]]; then export GUI_EDITOR="subl -w" elif [[ $( has bbedit ) == 'yes' ]]; then - export GUI_EDITOR="bbedit -w" + export GUI_EDITOR="bbedit" elif [[ $( has mate_wait ) == 'yes' ]]; then export GUI_EDITOR="mate_wait" else