Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial implementation

  • Loading branch information...
commit 1bafe247bd1698077b5baf3bd971ff4cfb9c90b3 0 parents
Manoj authored July 29, 2012
4  README.md
Source Rendered
... ...
@@ -0,0 +1,4 @@
  1
+**POSHMARKS**
  2
+
  3
+An implementation of [bashmarks](https://github.com/huyng/bashmarks "bashmarks") for Powershell
  4
+
2  poshmarks.csv
... ...
@@ -0,0 +1,2 @@
  1
+"Name","Key","Value"
  2
+"1","1","\"
33  poshmarks.ps1
... ...
@@ -0,0 +1,33 @@
  1
+$marks = @{};
  2
+$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
  3
+$marksPath = "$scriptDir\poshmarks.csv"
  4
+
  5
+if(test-path $marksPath){
  6
+    import-csv $marksPath | %{$marks[$_.key]=$_.value}
  7
+}
  8
+
  9
+function s($number){
  10
+    $marks["$number"] = (pwd).path
  11
+    $marks.getenumerator() | export-csv $marksPath -notype
  12
+}
  13
+
  14
+function g($number){
  15
+    cd $marks["$number"]
  16
+}
  17
+
  18
+function p($number){
  19
+    $marks["$number"]
  20
+}
  21
+
  22
+function d($number){
  23
+    $marks.remove("$number")
  24
+    $marks.getenumerator() | export-csv $marksPath -notype
  25
+}
  26
+
  27
+function mdump{
  28
+    $marks.getenumerator() | export-csv $marksPath -notype
  29
+}
  30
+
  31
+function l{
  32
+    $marks
  33
+}

0 notes on commit 1bafe24

Please sign in to comment.
Something went wrong with that request. Please try again.