This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paginate: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Look and Feel # | |
autoload -U colors && colors | |
PROMPT='%F{cyan}[%F{yellow}%~%F{cyan}]%F{blue}%f ' | |
# Aliases # | |
alias ls='ls -G' | |
alias 2sup='ssh server -l user' | |
alias upload='bash ~/Documents/dev/scripts/upload.sh' | |
alias sfetch='bash ~/.screenfetch/screenfetch-dev' | |
alias c='clear' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-2.0.0-p247: | |
system: | |
uname: "Darwin maggot.local 12.4.1 Darwin Kernel Version 12.4.1: Tue May 21 17:04:50 PDT 2013; root:xnu-2050.40.51~1/RELEASE_X86_64 x86_64" | |
system: "osx/10.8/x86_64" | |
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)" | |
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)" | |
rvm: | |
version: "rvm 1.22.3 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Generating URL..." | |
FULL_PATH="/Users/fin/Documents/dev/projects/urlshort" | |
#Count is kept based on a list.txt file | |
#list.txt is a plain text file meant to show relationships between URLs | |
#Instead of a running count, we just count the lines in list.txt | |
INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)` | |
NUM="$INITIAL/4" |