Skip to content

Commit

Permalink
Merge branch 'master' of git.j4hangir.com:j4hangir/nix
Browse files Browse the repository at this point in the history
  • Loading branch information
j4hangir committed Sep 21, 2024
2 parents 1d04211 + 1e1a1e0 commit 4373705
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
alias hick='history | ack -i'
#alias history='history | aul'
alias pu='pushd'
alias po='popd'

Expand Down Expand Up @@ -52,6 +53,12 @@ elif [[ $os == 'freebsd' || $os == 'mac' ]]; then
alias ls='\ls -G -lahtr'
alias l.='\ls -Gd .* -Gtr'
alias updatedb='sudo /usr/libexec/locate.updatedb'

# j4hangir: redefine mdfind and remove UserQueryParser superfluous msgs
function mdfind() {
/usr/bin/mdfind $@ 2> >(grep --invert-match ' \[UserQueryParser\] ' >&2)
}

srch() {
mdfind -name $@
}
Expand All @@ -75,6 +82,11 @@ cdl () {
# fi
#}


function find_bundle_name() {
mdfind "kMDItemKind == 'Application'" | grep -i $1 | head -1 | xargs -I {} defaults read {}/Contents/Info CFBundleIdentifier | tee >(pbcopy)
}

opf () {
if [[ $os == 'mac' ]]; then
c="netstat -antvp tcp"
Expand Down
1 change: 0 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ antigen apply
source $DIR/.zshrc



# echo " _ _ __ _ _ __
# __/\__ _ __ (_) __ __ (_) / _| (_) ___ __| | _ \ \
# \ / | '_ \ | | \ \/ / | | | |_ | | / _ \ / _\` | (_) | |
Expand Down

0 comments on commit 4373705

Please sign in to comment.